added destructors for modules
This commit is contained in:
parent
16f9531484
commit
7f04a7963a
17
src/studio.c
17
src/studio.c
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue