[farsight2/master] nice: Free nice candidates, fixes leak

Olivier Crête olivier.crete at collabora.co.uk
Mon Jul 20 18:44:29 PDT 2009


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

diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index 202f336..7099ad1 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -1590,6 +1590,7 @@ agent_new_candidate (NiceAgent *agent,
       break;
     }
   }
+  g_slist_foreach (candidates, (GFunc) nice_candidate_free, NULL);
   g_slist_free (candidates);
 
   if (fscandidate)
-- 
1.5.6.5




More information about the farsight-commits mailing list