summaryrefslogtreecommitdiffstats
path: root/src/Instance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Instance.cpp')
-rw-r--r--src/Instance.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Instance.cpp b/src/Instance.cpp
index 9758dbb..ead9cac 100644
--- a/src/Instance.cpp
+++ b/src/Instance.cpp
@@ -20,12 +20,13 @@
#include <iostream>
#include "Instance.h"
#include "Gui/Window.h"
+#include "Data/Level.h"
namespace ZoomEdit {
guint Instance::instances = 0;
-Instance::Instance() : window(NULL) {
+Instance::Instance() : window(NULL), levelXml(NULL), level(NULL) {
instances++;
#ifdef GLIBMM_EXCEPTIONS_ENABLED
@@ -63,6 +64,12 @@ Instance::~Instance() {
if(window)
delete window;
+ if(levelXml)
+ delete levelXml;
+
+ if(level)
+ delete level;
+
instances--;
if(!instances)
Gtk::Main::quit();