Memleak patch



Hello,

I'm going to apply the attached patch to bonobo HEAD and libbonobo.

//andersca
andersca gnu org
? po/ChangeLog.unpatched
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/bonobo/ChangeLog,v
retrieving revision 1.1102.2.1
diff -u -r1.1102.2.1 ChangeLog
--- ChangeLog	2001/08/22 16:17:02	1.1102.2.1
+++ ChangeLog	2001/08/22 21:07:00
@@ -1,3 +1,8 @@
+2001-08-22  Anders Carlsson  <andersca gnu org>
+
+	* bonobo/bonobo-ui-component.c (impl_xml_get): 
+	Call CORBA_exception_free on our ev.
+
 2001-08-22  Michael Meeks  <michael ximian com>
 
 	* bonobo/bonobo-ui-component.c
Index: bonobo/bonobo-ui-component.c
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/bonobo-ui-component.c,v
retrieving revision 1.48.2.1
diff -u -r1.48.2.1 bonobo-ui-component.c
--- bonobo/bonobo-ui-component.c	2001/08/22 16:17:03	1.48.2.1
+++ bonobo/bonobo-ui-component.c	2001/08/22 21:07:00
@@ -757,8 +757,15 @@
 		if (!ev)
 			g_warning ("Serious exception getting node '%s' '$%s'",
 				   path, bonobo_exception_get_text (real_ev));
+
+		if (!ev)
+			CORBA_exception_free (real_ev);
+
 		return NULL;
 	}
+
+	if (!ev)
+		CORBA_exception_free (real_ev);
 
 	return xml;
 }


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