[evolution-patches] gal leak



e-canvas was leaking the im_context.

--Larry
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gal/ChangeLog,v
retrieving revision 1.785
diff -u -p -r1.785 ChangeLog
--- ChangeLog	2 Jun 2003 18:38:48 -0000	1.785
+++ ChangeLog	13 Jun 2003 07:45:35 -0000
@@ -1,3 +1,7 @@
+2003-06-13  Larry Ewing  <lewing ximian com>
+
+	* gal/widgets/e-canvas.c (e_canvas_dispose): unref the im_context.
+
 2003-06-02  Mike Kestner  <mkestner ximian com>
 
 	* configure.in : releasing 1.99.7
Index: gal/widgets/e-canvas.c
===================================================================
RCS file: /cvs/gnome/gal/gal/widgets/e-canvas.c,v
retrieving revision 1.45
diff -u -p -r1.45 e-canvas.c
--- gal/widgets/e-canvas.c	2 Apr 2003 05:46:33 -0000	1.45
+++ gal/widgets/e-canvas.c	13 Jun 2003 07:45:35 -0000
@@ -140,6 +140,11 @@ e_canvas_dispose (GObject *object)
 		canvas->toplevel = NULL;
 	}
 
+	if (canvas->im_context) {
+		g_object_unref (canvas->im_context);
+		canvas->im_context = NULL;
+	}
+
 	e_canvas_hide_tooltip(canvas);
 
 	if ((G_OBJECT_CLASS (parent_class))->dispose)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]