mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
gloverlay: fix a leak
https://bugzilla.gnome.org/show_bug.cgi?id=749846
This commit is contained in:
parent
01177670ea
commit
0280be02ca
1 changed files with 1 additions and 0 deletions
|
@ -807,6 +807,7 @@ gst_gl_overlay_load_png (GstGLOverlay * overlay, FILE * fp)
|
|||
|
||||
if (!gst_memory_map ((GstMemory *) overlay->image_memory, &map_info,
|
||||
GST_MAP_WRITE)) {
|
||||
png_destroy_read_struct (&png_ptr, &info_ptr, png_infopp_NULL);
|
||||
GST_ELEMENT_ERROR (overlay, STREAM, DECODE,
|
||||
("failed to map memory"), ("File: %s", overlay->location));
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue