[evolution-patches] gnome-spell patch to fix 2 memory leaks
- From: Radek Doulík <rodo ximian com>
- To: Patches <evolution-patches ximian com>
- Subject: [evolution-patches] gnome-spell patch to fix 2 memory leaks
- Date: 14 Apr 2003 14:59:35 +0200
As I am the only one hacking on gnome spell I will commit the fix after
24 hours if no one will object.
? DEADJOE
? GNOME_Spell.server
? GNOME_Spell.server.in
? GNOME_Spell.server.in.in.h
? core.29585
? core.29595
? core.833
? core.841
? core.849
? leaks.fix
? spell-checker.glade.h
? spell-checker.gladep
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-spell/gnome-spell/ChangeLog,v
retrieving revision 1.33
diff -u -p -r1.33 ChangeLog
--- ChangeLog 7 Apr 2003 17:51:00 -0000 1.33
+++ ChangeLog 14 Apr 2003 12:56:29 -0000
@@ -1,3 +1,9 @@
+2003-04-14 Radek Doulik <rodo ximian com>
+
+ * control.c (control_destroy): unref dictionary
+ (spell_control_construct): unref property bag once it's given to
+ control
+
2003-04-07 Radek Doulik <rodo ximian com>
* dictionary.c: change the abbrevs syntax to match e-iconv.c in
Index: control.c
===================================================================
RCS file: /cvs/gnome/gnome-spell/gnome-spell/control.c,v
retrieving revision 1.13
diff -u -p -r1.13 control.c
--- control.c 25 Mar 2003 14:36:06 -0000 1.13
+++ control.c 14 Apr 2003 12:56:29 -0000
@@ -310,6 +310,8 @@ control_destroy (GObject *control, gpoin
SpellControlData *cd;
cd = (SpellControlData *) data;
+ /* printf ("release spell control dict\n"); */
+ bonobo_object_release_unref (cd->dict, NULL);
g_free (cd);
}
@@ -355,6 +357,7 @@ spell_control_construct (BonoboControl *
/* PropertyBag */
cd->pb = bonobo_property_bag_new (control_get_prop, control_set_prop, cd);
bonobo_control_set_properties (control, BONOBO_OBJREF (cd->pb), NULL);
+ bonobo_object_unref (BONOBO_OBJECT (cd->pb));
bonobo_property_bag_add (cd->pb, "word", PROP_SPELL_WORD, BONOBO_ARG_STRING, NULL,
"checked word", BONOBO_PROPERTY_WRITEABLE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]