gst-libs/gst/rtp/gstbasertppayload.c: Fix caps memleak. Fixes #484989.
authorLaurent Glayal <spglegle@yahoo.fr>
Tue, 9 Oct 2007 09:57:17 +0000 (09:57 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 9 Oct 2007 09:57:17 +0000 (09:57 +0000)
Original commit message from CVS:
Patch by: Laurent Glayal <spglegle at yahoo dot fr>
* gst-libs/gst/rtp/gstbasertppayload.c: (copy_fixed),
(gst_basertppayload_set_outcaps):
Fix caps memleak. Fixes #484989.

ChangeLog
gst-libs/gst/rtp/gstbasertppayload.c

index 1e3ef5d..e9a0eb1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-10-09  Wim Taymans  <wim.taymans@gmail.com>
+
+       Patch by: Laurent Glayal <spglegle at yahoo dot fr>
+
+       * gst-libs/gst/rtp/gstbasertppayload.c: (copy_fixed),
+       (gst_basertppayload_set_outcaps):
+       Fix caps memleak. Fixes #484989.
+
+
 2007-10-08  Wim Taymans  <wim.taymans@gmail.com>
 
        * gst-libs/gst/rtp/gstbasertpdepayload.c:
index b094661..944515a 100644 (file)
@@ -573,6 +573,8 @@ gst_basertppayload_set_outcaps (GstBaseRTPPayload * payload, gchar * fieldname,
 
     gst_structure_foreach (s, (GstStructureForeachFunc) copy_fixed, d);
 
+    gst_caps_unref (temp);
+
     GST_DEBUG_OBJECT (payload, "with peer caps: %" GST_PTR_FORMAT, srccaps);
   }