gst/rtpmanager/rtpsource.c: Make sure to unref the caps used by RTPSource to prevent...
authorPeter Kjellerstedt <pkj@axis.com>
Fri, 9 May 2008 07:41:58 +0000 (07:41 +0000)
committerPeter Kjellerstedt <pkj@axis.com>
Fri, 9 May 2008 07:41:58 +0000 (07:41 +0000)
Original commit message from CVS:
* gst/rtpmanager/rtpsource.c: (rtp_source_finalize):
Make sure to unref the caps used by RTPSource to prevent a memory leak.

ChangeLog
common
gst/rtpmanager/rtpsource.c

index 74440f2afa43aec19adb80e01f24b5134c902a6c..1fc45c18541556b4a2a3d6909b70bac248f93fe2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-09  Peter Kjellerstedt  <pkj@axis.com>
+
+       * gst/rtpmanager/rtpsource.c: (rtp_source_finalize):
+       Make sure to unref the caps used by RTPSource to prevent a memory leak.
+
 2008-05-08  Tim-Philipp Müller  <tim.muller at collabora co uk>
 
        Based on patch by: Clive Wright <clive_wright ntlworld com>
diff --git a/common b/common
index ba3dd2882b1611f8115f9664e3b85e1fd956b53d..dbf8f3aeceb6e57de097951a670cd853b4886ad8 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit ba3dd2882b1611f8115f9664e3b85e1fd956b53d
+Subproject commit dbf8f3aeceb6e57de097951a670cd853b4886ad8
index 36def4618ee346b1b567bbec8183da7516dc8bf7..4c351a1a6e32a3d8726608bd098ed125d152a86b 100644 (file)
@@ -197,6 +197,8 @@ rtp_source_finalize (GObject * object)
 
   g_free (src->bye_reason);
 
+  gst_caps_replace (&src->caps, NULL);
+
   G_OBJECT_CLASS (rtp_source_parent_class)->finalize (object);
 }