gloverlay: fix a leak

https://bugzilla.gnome.org/show_bug.cgi?id=749846
This commit is contained in:
Xavier Claessens 2015-05-26 16:47:47 -04:00 committed by Tim-Philipp Müller
parent 01177670ea
commit 0280be02ca

View file

@ -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;