[gtk+] GtkPlacesSidebar: Fix a memory leak



commit 08e1c8e30a98a7a4c9c62c22160c98da59e630e0
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Thu Sep 11 23:27:33 2014 +0100

    GtkPlacesSidebar: Fix a memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736512

 gtk/gtkplacessidebar.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 8b545f5..d1ab3ff 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -3679,7 +3679,10 @@ hostname_proxy_new_cb (GObject      *source_object,
 
   proxy = g_dbus_proxy_new_for_bus_finish (res, &error);
   if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-    return;
+    {
+      g_error_free (error);
+      return;
+    }
 
   sidebar->hostnamed_proxy = proxy;
   g_clear_object (&sidebar->hostnamed_cancellable);


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