From 3c72a44fa4592e0105af6bb9a440b0da06d0bde4 Mon Sep 17 00:00:00 2001 From: neoraider Date: Thu, 10 Apr 2008 00:04:03 +0000 Subject: zoomedit: * Added more data classes * Work on integration with libxml++ --- src/Instance.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/Instance.cpp') 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 #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(); -- cgit v1.2.3