mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-25 21:14:22 +01:00
Do SDL quit and free surfaces
This commit is contained in:
parent
112154d17a
commit
a98cf4ddd8
20
gui.cpp
20
gui.cpp
@ -117,6 +117,26 @@ Gui::~Gui()
|
||||
|
||||
if (VirtualKeyboard::kbd)
|
||||
delete VirtualKeyboard::kbd;
|
||||
|
||||
SDL_FreeSurface(this->bg_left);
|
||||
SDL_FreeSurface(this->bg_middle);
|
||||
SDL_FreeSurface(this->bg_right);
|
||||
SDL_FreeSurface(this->bg_submenu_left);
|
||||
SDL_FreeSurface(this->bg_submenu_middle);
|
||||
SDL_FreeSurface(this->bg_submenu_right);
|
||||
SDL_FreeSurface(this->background);
|
||||
SDL_FreeSurface(this->main_menu_bg);
|
||||
SDL_FreeSurface(this->infobox);
|
||||
SDL_FreeSurface(this->dialogue_bg);
|
||||
SDL_FreeSurface(this->disc_info);
|
||||
SDL_FreeSurface(this->textbox);
|
||||
SDL_FreeSurface(this->selected_key);
|
||||
SDL_FreeSurface(this->highlighted_key);
|
||||
|
||||
if (this->default_font)
|
||||
delete this->default_font;
|
||||
if (this->small_font)
|
||||
delete this->small_font;
|
||||
}
|
||||
|
||||
bool Gui::setTheme(const char *path)
|
||||
|
2
main.cpp
2
main.cpp
@ -63,5 +63,7 @@ int main(int argc, char *argv[])
|
||||
run();
|
||||
fini();
|
||||
|
||||
SDL_Quit();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ public:
|
||||
|
||||
~Font_TTF()
|
||||
{
|
||||
free(this->font);
|
||||
TTF_CloseFont(this->font);
|
||||
}
|
||||
|
||||
int getHeight(const char *str)
|
||||
|
Loading…
Reference in New Issue
Block a user