summaryrefslogtreecommitdiffstats
path: root/src/Instance.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-04-10 02:04:03 +0200
committerneoraider <devnull@localhost>2008-04-10 02:04:03 +0200
commit3c72a44fa4592e0105af6bb9a440b0da06d0bde4 (patch)
treec84db1ff4714ccfdc579e758cbb50001a1750a21 /src/Instance.cpp
parentdbe6bf35635c70abdcc3656b3fcb4408fc920c74 (diff)
downloadzoomedit-3c72a44fa4592e0105af6bb9a440b0da06d0bde4.tar
zoomedit-3c72a44fa4592e0105af6bb9a440b0da06d0bde4.zip
zoomedit:
* Added more data classes * Work on integration with libxml++
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();