diff --git a/src/core.cc b/src/core.cc index 00db56f..11935b6 100644 --- a/src/core.cc +++ b/src/core.cc @@ -2073,6 +2073,7 @@ int _GNW95_init_window(int width, int height, bool fullscreen) err: if (gSdlTexture != NULL) { + SDL_DestroyTexture(gSdlTexture); gSdlTexture = NULL; }