mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
gdkpixbufdec: Fix pixbuf_loader leak during failures
https://bugzilla.gnome.org/show_bug.cgi?id=756219
This commit is contained in:
parent
2be5416e4a
commit
4000d97a81
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue