diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2015-10-08 11:44:04 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-10-08 15:01:53 +0100 |
commit | 4000d97a819103edd08a326d3bf82deba08f5d4f (patch) | |
tree | 76f50ac99a30f01793907bc35532739db47bf4d6 /ext | |
parent | 2be5416e4a04a16f4b7b0e8565aaa2c5836046af (diff) |
gdkpixbufdec: Fix pixbuf_loader leak during failures
https://bugzilla.gnome.org/show_bug.cgi?id=756219
Diffstat (limited to 'ext')
-rw-r--r-- | ext/gdk_pixbuf/gstgdkpixbufdec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/gdk_pixbuf/gstgdkpixbufdec.c b/ext/gdk_pixbuf/gstgdkpixbufdec.c index 02e780ce0..36cfbc027 100644 --- a/ext/gdk_pixbuf/gstgdkpixbufdec.c +++ b/ext/gdk_pixbuf/gstgdkpixbufdec.c @@ -547,6 +547,11 @@ gst_gdk_pixbuf_dec_change_state (GstElement * element, } g_list_free_full (dec->pending_events, (GDestroyNotify) gst_event_unref); dec->pending_events = NULL; + if (dec->pixbuf_loader != NULL) { + gdk_pixbuf_loader_close (dec->pixbuf_loader, NULL); + g_object_unref (G_OBJECT (dec->pixbuf_loader)); + dec->pixbuf_loader = NULL; + } break; default: break; |