summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphView.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-08-10 06:05:57 +0000
committerDavid Robillard <d@drobilla.net>2014-08-10 06:05:57 +0000
commit9bd6508264e2aef1c4afb1df585ee375016789ea (patch)
tree45c34ad67281e4a9fba84b8775897b2b28a42294 /src/gui/GraphView.cpp
parent5e098da2c2b1ef6636af7943a7788f2b47f0ad6c (diff)
downloadingen-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/GraphView.cpp')
-rw-r--r--src/gui/GraphView.cpp5
1 files changed, 5 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)
{