added destructors for modules

This commit is contained in:
BADIM-PC\Vadim 2017-12-13 21:14:03 +03:00
parent 16f9531484
commit 7f04a7963a
1 changed files with 31 additions and 14 deletions

View File

@ -2611,6 +2611,23 @@ s32 main(s32 argc, char **argv)
#endif #endif
{
SDL_free(studio.start);
SDL_free(studio.console);
SDL_free(studio.run);
SDL_free(studio.code);
SDL_free(studio.sprite);
SDL_free(studio.map);
SDL_free(studio.world);
SDL_free(studio.sfx);
SDL_free(studio.music);
SDL_free(studio.config);
SDL_free(studio.keymap);
SDL_free(studio.dialog);
SDL_free(studio.menu);
SDL_free(studio.surf);
}
if(studio.tic80local) if(studio.tic80local)
tic80_delete((tic80*)studio.tic80local); tic80_delete((tic80*)studio.tic80local);