Plugged leak
- From: Federico Mena Quintero <federico helixcode com>
- To: gnome-components-list gnome org
- Subject: Plugged leak
- Date: Thu, 7 Dec 2000 15:30:09 -0600
I just committed this patch to Bonobo. It fixes a little memory
leak. There are other leaks in bonobo-property-bag which I am taking
care of.
Federico
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/bonobo/ChangeLog,v
retrieving revision 1.794
diff -u -r1.794 ChangeLog
--- ChangeLog 2000/12/07 00:36:36 1.794
+++ ChangeLog 2000/12/07 21:20:51
@@ -1,3 +1,8 @@
+2000-12-07 Federico Mena Quintero <federico helixcode com>
+
+ * bonobo/bonobo-property-bag.c
+ (bonobo_property_servant_locator_preinvoke): Free the property_name.
+
2000-12-07 Michael Meeks <michael helixcode com>
* bonobo/bonobo-selector.c (bonobo_selector_new): clean.
Index: bonobo/bonobo-property-bag.c
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/bonobo-property-bag.c,v
retrieving revision 1.32
diff -u -r1.32 bonobo-property-bag.c
--- bonobo/bonobo-property-bag.c 2000/12/04 07:21:32 1.32
+++ bonobo/bonobo-property-bag.c 2000/12/07 21:20:54
@@ -82,10 +82,11 @@
* Create a temporary servant for this Property.
*/
servant = bonobo_property_servant_new (adapter, pb, property_name);
+ CORBA_free (property_name);
+
if (servant == NULL) {
g_warning ("BonoboPropertyBag: Could not create transient Property servant");
CORBA_exception_set_system(ev, ex_CORBA_NO_MEMORY, CORBA_COMPLETED_NO);
- CORBA_free (property_name);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]