[gst-devel] Patch : gst-plugins/gst/auparse/gstauparse.c

Antoine Tremblay hexa00 at gmail.com
Thu Jun 23 08:38:09 CEST 2005


Hi,

 This is my 1st patch to gstreamer so , if i'm not posting the right
way or there's something I should know about posting patches plz tell
me :)

The very simple patch patches a memory leak in auparse (the leak is
present in the cvs version)

If someone can commit it to the cvs ? 

Use patch -p1 < patch in your plugins dir,...

diff -Naur gst-plugins-cvs-org/gst/auparse/gstauparse.c
gst-plugins-cvs/gst/auparse/gstauparse.c

--- gst-plugins-cvs-org/gst/auparse/gstauparse.c        2005-06-23
11:32:34.116399824 -0400
+++ gst-plugins-cvs/gst/auparse/gstauparse.c    2005-06-23
11:33:45.705516624 -0400
@@ -368,7 +368,8 @@
     GST_BUFFER_SIZE (newbuf) = size - (auparse->offset);

     gst_buffer_unref (buf);
-
+    gst_caps_free(tempcaps);
+
     gst_pad_push (auparse->srcpad, GST_DATA (newbuf));
     return;
   }




More information about the gstreamer-devel mailing list