mirror of
https://github.com/Relintai/sfw.git
synced 2025-01-03 05:09:36 +01:00
Avoid memleak.
This commit is contained in:
parent
9ec2133dae
commit
12fe8bbbbd
@ -87,6 +87,7 @@ Application::Application() {
|
||||
MemoryPool::setup();
|
||||
CoreStringNames::create();
|
||||
|
||||
// TODO add a helper static method
|
||||
memnew(AppWindow());
|
||||
|
||||
if (!Input::get_singleton()) {
|
||||
@ -143,6 +144,10 @@ Application::~Application() {
|
||||
MemoryPool::cleanup();
|
||||
CoreStringNames::free();
|
||||
|
||||
// TODO add a helper static method
|
||||
memdelete(AppWindow::get_singleton());
|
||||
memdelete(Input::get_singleton());
|
||||
|
||||
//SDL_DestroyWindow(window);
|
||||
|
||||
// window = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user