summaryrefslogtreecommitdiffstats
path: root/src/Canvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Canvas.cpp')
-rw-r--r--src/Canvas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Canvas.cpp b/src/Canvas.cpp
index 1c8410b..4db5576 100644
--- a/src/Canvas.cpp
+++ b/src/Canvas.cpp
@@ -268,6 +268,7 @@ struct GanvCanvasImpl {
~GanvCanvasImpl()
{
+ g_source_remove(_animate_idle_id);
while (g_idle_remove_by_data(this)) ;
ganv_canvas_clear(_gcanvas);
gdk_cursor_unref(_move_cursor);
@@ -2877,6 +2878,7 @@ ganv_canvas_unrealize(GtkWidget* widget)
GanvCanvas* canvas = GANV_CANVAS(widget);
+ g_source_remove(canvas->impl->_animate_idle_id);
while (g_idle_remove_by_data(canvas->impl)) {}
shutdown_transients(canvas);