summaryrefslogtreecommitdiffstats
path: root/ext/gdk_pixbuf
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2008-07-04 20:43:07 +0000
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2008-07-04 20:43:07 +0000
commit26c7c7c3191ed84cefad49f4bc655e0ac96ed37e (patch)
tree160bdddc3dfc0190b8981e2e7a62080eded57b80 /ext/gdk_pixbuf
parent8201ab92ad1f8fbf3e9a56bbb18c8658cb245575 (diff)
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.
Diffstat (limited to 'ext/gdk_pixbuf')
-rw-r--r--ext/gdk_pixbuf/gstgdkpixbuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c
index 61926cbe..d35c2cb5 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;
}