[telepathy-gabble/master] Unleak a JingleContent ref

Will Thompson will.thompson at collabora.co.uk
Wed Apr 29 06:59:12 PDT 2009


---
 src/media-channel.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/media-channel.c b/src/media-channel.c
index 1f74554..d4383b4 100644
--- a/src/media-channel.c
+++ b/src/media-channel.c
@@ -2523,7 +2523,11 @@ stream_creation_data_cancel (gpointer p,
 {
   StreamCreationData *d = p;
 
-  d->content = NULL;
+  if (d->content != NULL)
+    {
+      g_object_unref (d->content);
+      d->content = NULL;
+    }
 }
 
 static void
-- 
1.5.6.5




More information about the telepathy-commits mailing list