(Vita) Check vita->texture before freeing it

This commit is contained in:
Sergi Granell 2015-08-31 21:41:45 +02:00
parent 56af52a268
commit dbb91c85e6

View File

@ -251,7 +251,8 @@ static void vita2d_gfx_free(void *data)
if (vita->menu.frame)
vita2d_free_texture(vita->menu.frame);
vita2d_free_texture(vita->texture);
if (vita->texture)
vita2d_free_texture(vita->texture);
vita2d_fini();
}