[farsight2/master] Dont leak foundation when destroying candidate
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:21:29 PST 2008
---
gst-libs/gst/farsight/fs-candidate.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gst-libs/gst/farsight/fs-candidate.c b/gst-libs/gst/farsight/fs-candidate.c
index 622b429..ceb46a6 100644
--- a/gst-libs/gst/farsight/fs-candidate.c
+++ b/gst-libs/gst/farsight/fs-candidate.c
@@ -76,6 +76,8 @@ fs_candidate_list_get_type (void)
void
fs_candidate_destroy (FsCandidate * cand)
{
+ if (cand->foundation)
+ g_free ((gchar *)cand->foundation);
if (cand->candidate_id)
g_free ((gchar *)cand->candidate_id);
if (cand->ip)
--
1.5.6.5
More information about the farsight-commits
mailing list