diff options
author | neoraider <devnull@localhost> | 2008-04-10 02:04:03 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-04-10 02:04:03 +0200 |
commit | 3c72a44fa4592e0105af6bb9a440b0da06d0bde4 (patch) | |
tree | c84db1ff4714ccfdc579e758cbb50001a1750a21 /src/Instance.cpp | |
parent | dbe6bf35635c70abdcc3656b3fcb4408fc920c74 (diff) | |
download | zoomedit-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.cpp | 9 |
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(); |