summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/GraphView.cpp5
-rw-r--r--src/gui/GraphView.hpp2
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; }