gloverlay: fix a leak
https://bugzilla.gnome.org/show_bug.cgi?id=749846
This commit is contained in:
parent
53cd9e3e0e
commit
2bb01f9601
@ -807,6 +807,7 @@ gst_gl_overlay_load_png (GstGLOverlay * overlay, FILE * fp)
|
|||||||
|
|
||||||
if (!gst_memory_map ((GstMemory *) overlay->image_memory, &map_info,
|
if (!gst_memory_map ((GstMemory *) overlay->image_memory, &map_info,
|
||||||
GST_MAP_WRITE)) {
|
GST_MAP_WRITE)) {
|
||||||
|
png_destroy_read_struct (&png_ptr, &info_ptr, png_infopp_NULL);
|
||||||
GST_ELEMENT_ERROR (overlay, STREAM, DECODE,
|
GST_ELEMENT_ERROR (overlay, STREAM, DECODE,
|
||||||
("failed to map memory"), ("File: %s", overlay->location));
|
("failed to map memory"), ("File: %s", overlay->location));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user