[farsight2/master] Free NiceCandidate with the right method

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:26:25 PST 2008


---
 transmitters/nice/fs-nice-stream-transmitter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index 29250a8..56562ef 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -701,7 +701,7 @@ fs_nice_stream_transmitter_remote_candidates_added (
       FS_ERROR_INVALID_ARGUMENTS,
       "Invalid remote candidate passed",
       "Remote candidate passed in previous add_remote_candidate() call invalid");
-  g_slist_foreach (nice_candidates, (GFunc) g_free, NULL);
+  g_slist_foreach (nice_candidates, (GFunc) nice_candidate_free, NULL);
   g_slist_free (nice_candidates);
   fs_candidate_list_destroy (candidates);
 }
-- 
1.5.6.5




More information about the farsight-commits mailing list