rtmpsrc: Fix memory leaks
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 7 Jun 2010 15:30:47 +0000 (17:30 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 7 Jun 2010 15:31:40 +0000 (17:31 +0200)
ext/rtmp/gstrtmpsrc.c

index 2a3f369d3fd29f127695739002139b2871bd187f..a4806f0940940820713b83cae08030a104a4b658 100644 (file)
@@ -172,12 +172,10 @@ gst_rtmp_src_finalize (GObject * object)
 
   g_free (rtmpsrc->uri);
   rtmpsrc->uri = NULL;
-
-  if (rtmpsrc->rtmp) {
-    RTMP_Close (rtmpsrc->rtmp);
-    RTMP_Free (rtmpsrc->rtmp);
-    rtmpsrc->rtmp = NULL;
-  }
+  g_free (rtmpsrc->swf_url);
+  rtmpsrc->swf_url = NULL;
+  g_free (rtmpsrc->page_url);
+  rtmpsrc->page_url = NULL;
 
   G_OBJECT_CLASS (parent_class)->finalize (object);
 }