mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Avoid memory leaks from GuiXml singleton.
This commit is contained in:
parent
8828289e1f
commit
88f442b831
@ -42,6 +42,7 @@
|
||||
#include "file/file_formats_manager.h"
|
||||
#include "gui/jinete.h"
|
||||
#include "gui/jintern.h"
|
||||
#include "gui_xml.h"
|
||||
#include "log.h"
|
||||
#include "modules/editors.h"
|
||||
#include "modules/gfx.h"
|
||||
@ -318,6 +319,9 @@ App::~App()
|
||||
delete m_modules;
|
||||
delete m_loggerModule;
|
||||
delete m_configModule;
|
||||
|
||||
// Destroy the loaded gui.xml file.
|
||||
delete GuiXml::instance();
|
||||
|
||||
m_instance = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user