From fb6cff045de58c304527efea4e85d53fd80d2758 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Dec 2010 22:34:10 +0000 Subject: Fix memory leaks. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2688 a436a847-0d15-0410-975c-d299462d15a1 --- src/Driver.hpp | 2 +- src/Patchage.cpp | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Driver.hpp b/src/Driver.hpp index c251309..debcbb8 100644 --- a/src/Driver.hpp +++ b/src/Driver.hpp @@ -43,7 +43,7 @@ public: virtual void detach() = 0; virtual bool is_attached() const = 0; - virtual void refresh() = 0; + virtual void refresh() = 0; virtual void destroy_all() {} virtual boost::shared_ptr create_port_view( diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 26d1127..559e125 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -290,12 +290,16 @@ Patchage::~Patchage() #endif #ifdef HAVE_LASH delete _lash_proxy; + delete _project_list; + delete _session; + delete _dbus; #endif delete _state_manager; - + _about_win.destroy(); _messages_win.destroy(); - //_main_win.destroy(); + + _xml.reset(); } @@ -646,6 +650,7 @@ Patchage::on_quit() _jack_driver->detach(); #endif _main_win->hide(); + _canvas.reset(); } -- cgit v1.2.1