aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-canvas.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-canvas.c')
-rw-r--r--widgets/misc/e-canvas.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c
index 78961ae530..d82f96e722 100644
--- a/widgets/misc/e-canvas.c
+++ b/widgets/misc/e-canvas.c
@@ -120,8 +120,13 @@ static void
e_canvas_destroy (GtkObject *object)
{
ECanvas *canvas = E_CANVAS(object);
+
if (canvas->idle_id)
g_source_remove(canvas->idle_id);
+
+ if (canvas->ic)
+ gdk_ic_destroy (canvas->ic);
+
if ((GTK_OBJECT_CLASS (parent_class))->destroy)
(*(GTK_OBJECT_CLASS (parent_class))->destroy) (object);
}