Free overlay_ptr

This commit is contained in:
twinaphex 2016-05-24 15:30:18 +02:00
parent 160ac49089
commit 5656959085

View File

@ -177,6 +177,10 @@ void input_overlay_free_overlay(struct overlay *overlay)
free(overlay->descs);
overlay->descs = NULL;
image_texture_free(&overlay->image);
if (overlay_ptr)
free(overlay_ptr);
overlay_ptr = NULL;
}
static void input_overlay_free_overlays(input_overlay_t *ol)