Fix error handling
This commit is contained in:
parent
ae2e35f792
commit
dac07340b4
|
@ -2073,6 +2073,7 @@ int _GNW95_init_window(int width, int height, bool fullscreen)
|
|||
|
||||
err:
|
||||
if (gSdlTexture != NULL) {
|
||||
SDL_DestroyTexture(gSdlTexture);
|
||||
gSdlTexture = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue