mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
videodecoder: do not leak pool and allocator in error case
https://bugzilla.gnome.org/show_bug.cgi?id=736679
This commit is contained in:
parent
3a7cdcdfc9
commit
787b3fa7ec
1 changed files with 4 additions and 0 deletions
|
@ -3253,6 +3253,10 @@ gst_video_decoder_decide_allocation_default (GstVideoDecoder * decoder,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
config_failed:
|
config_failed:
|
||||||
|
if (allocator)
|
||||||
|
gst_object_unref (allocator);
|
||||||
|
if (pool)
|
||||||
|
gst_object_unref (pool);
|
||||||
GST_ELEMENT_ERROR (decoder, RESOURCE, SETTINGS,
|
GST_ELEMENT_ERROR (decoder, RESOURCE, SETTINGS,
|
||||||
("Failed to configure the buffer pool"),
|
("Failed to configure the buffer pool"),
|
||||||
("Configuration is most likely invalid, please report this issue."));
|
("Configuration is most likely invalid, please report this issue."));
|
||||||
|
|
Loading…
Reference in a new issue