Commit 26c7c7c3 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

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.
parent 8201ab92
2008-07-04 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
* ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_chain):
Do not leak incoming buffers.
2008-07-03 Sebastian Dröge <sebastian.droege@collabora.co.uk> 2008-07-03 Sebastian Dröge <sebastian.droege@collabora.co.uk>
   
Patch by: Damien Lespiau <damien dot lespiau at gmail dot com> Patch by: Damien Lespiau <damien dot lespiau at gmail dot com>
......
...@@ -399,6 +399,7 @@ gst_gdk_pixbuf_chain (GstPad * pad, GstBuffer * buf) ...@@ -399,6 +399,7 @@ gst_gdk_pixbuf_chain (GstPad * pad, GstBuffer * buf)
filter->pixbuf_loader = NULL; filter->pixbuf_loader = NULL;
} }
gst_buffer_unref (buf);
gst_object_unref (filter); gst_object_unref (filter);
return ret; return ret;
...@@ -409,6 +410,7 @@ error: ...@@ -409,6 +410,7 @@ error:
GST_ELEMENT_ERROR (filter, STREAM, DECODE, (NULL), GST_ELEMENT_ERROR (filter, STREAM, DECODE, (NULL),
("gdk_pixbuf_loader_write error: %s", error->message)); ("gdk_pixbuf_loader_write error: %s", error->message));
g_error_free (error); g_error_free (error);
gst_buffer_unref (buf);
gst_object_unref (filter); gst_object_unref (filter);
return GST_FLOW_ERROR; return GST_FLOW_ERROR;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment