diff options
author | David Robillard <d@drobilla.net> | 2014-08-10 06:05:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-08-10 06:05:57 +0000 |
commit | 9bd6508264e2aef1c4afb1df585ee375016789ea (patch) | |
tree | 45c34ad67281e4a9fba84b8775897b2b28a42294 /src/gui | |
parent | 5e098da2c2b1ef6636af7943a7788f2b47f0ad6c (diff) | |
download | ingen-9bd6508264e2aef1c4afb1df585ee375016789ea.tar.gz ingen-9bd6508264e2aef1c4afb1df585ee375016789ea.tar.bz2 ingen-9bd6508264e2aef1c4afb1df585ee375016789ea.zip |
Fix memory errors when destroying graph view.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5452 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/GraphView.cpp | 5 | ||||
-rw-r--r-- | src/gui/GraphView.hpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/GraphView.cpp b/src/gui/GraphView.cpp index 001d1faf..48056f56 100644 --- a/src/gui/GraphView.cpp +++ b/src/gui/GraphView.cpp @@ -58,6 +58,11 @@ GraphView::GraphView(BaseObjectType* cobject, _canvas_scrolledwindow->property_vadjustment().get_value()->set_step_increment(10); } +GraphView::~GraphView() +{ + _canvas_scrolledwindow->remove(); +} + void GraphView::init(App& app) { diff --git a/src/gui/GraphView.hpp b/src/gui/GraphView.hpp index f0524673..140d5248 100644 --- a/src/gui/GraphView.hpp +++ b/src/gui/GraphView.hpp @@ -59,6 +59,8 @@ public: GraphView(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& xml); + ~GraphView(); + void init(App& app); SPtr<GraphCanvas> canvas() const { return _canvas; } |