gconf r2606 - in trunk: . gconf



Author: kmaraas
Date: Sat May 24 14:44:50 2008
New Revision: 2606
URL: http://svn.gnome.org/viewvc/gconf?rev=2606&view=rev

Log:
2008-05-22  Kjartan Maraas  <kmaraas gnome org>

	* gconf/gconf-internals.c: Plug a leak.

Modified:
   trunk/ChangeLog
   trunk/gconf/gconf-internals.c

Modified: trunk/gconf/gconf-internals.c
==============================================================================
--- trunk/gconf/gconf-internals.c	(original)
+++ trunk/gconf/gconf-internals.c	Sat May 24 14:44:50 2008
@@ -2512,8 +2512,11 @@
   if (orb == NULL)
     {
       if (failure_log)
-        g_string_append_printf (failure_log,
+        {
+          g_string_append_printf (failure_log,
                                 _("couldn't contact ORB to resolve existing gconfd object reference"));
+          g_free (ior);
+        }
       return CORBA_OBJECT_NIL;
     }
 
@@ -2526,6 +2529,8 @@
                             _("Failed to convert IOR '%s' to an object reference"),
                             ior);
 
+  g_free (ior);
+
   return server;
 }
 



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