From: Mark Nauwelaerts Date: Fri, 4 Jul 2008 20:43:07 +0000 (+0000) Subject: ext/gdk_pixbuf/gstgdkpixbuf.c: Do not leak incoming buffers. X-Git-Tag: RELEASE-0_10_9~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26c7c7c3191ed84cefad49f4bc655e0ac96ed37e;p=platform%2Fupstream%2Fgst-plugins-good.git ext/gdk_pixbuf/gstgdkpixbuf.c: Do not leak incoming buffers. Original commit message from CVS: * ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_chain): Do not leak incoming buffers. --- diff --git a/ChangeLog b/ChangeLog index 99c487e..54542f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-07-04 Mark Nauwelaerts + + * ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_chain): + Do not leak incoming buffers. + 2008-07-03 Sebastian Dröge Patch by: Damien Lespiau diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c index 61926cb..d35c2cb 100644 --- a/ext/gdk_pixbuf/gstgdkpixbuf.c +++ b/ext/gdk_pixbuf/gstgdkpixbuf.c @@ -399,6 +399,7 @@ gst_gdk_pixbuf_chain (GstPad * pad, GstBuffer * buf) filter->pixbuf_loader = NULL; } + gst_buffer_unref (buf); gst_object_unref (filter); return ret; @@ -409,6 +410,7 @@ error: GST_ELEMENT_ERROR (filter, STREAM, DECODE, (NULL), ("gdk_pixbuf_loader_write error: %s", error->message)); g_error_free (error); + gst_buffer_unref (buf); gst_object_unref (filter); return GST_FLOW_ERROR; }