File bnc972515-sle-gnome-general-mem-leaks-fixes.patch of Package gnome-shell.2367

Index: gnome-shell-3.10.4/src/main.c
===================================================================
--- gnome-shell-3.10.4.orig/src/main.c
+++ gnome-shell-3.10.4/src/main.c
@@ -74,6 +74,7 @@ shell_dbus_acquire_name (GDBusProxy *bus
       exit (1);
     }
   g_variant_get (request_name_variant, "(u)", request_name_result);
+  g_variant_unref (request_name_variant);
 }
 
 static void
Index: gnome-shell-3.10.4/src/shell-app.c
===================================================================
--- gnome-shell-3.10.4.orig/src/shell-app.c
+++ gnome-shell-3.10.4/src/shell-app.c
@@ -987,7 +987,7 @@ application_properties_changed (GDBusCon
                                 gpointer         user_data)
 {
   ShellApp *app = user_data;
-  GVariant *changed_properties;
+  GVariant *changed_properties = NULL;
   gboolean busy = FALSE;
   const gchar *interface_name_for_signal;
 
@@ -998,7 +998,7 @@ application_properties_changed (GDBusCon
                  NULL);
 
   if (g_strcmp0 (interface_name_for_signal, "org.gtk.Application") != 0)
-    return;
+    goto out;
 
   g_variant_lookup (changed_properties, "Busy", "b", &busy);
 
@@ -1007,6 +1007,7 @@ application_properties_changed (GDBusCon
   else
     shell_app_state_transition (app, SHELL_APP_STATE_RUNNING);
 
+out:
   if (changed_properties != NULL)
     g_variant_unref (changed_properties);
 }
openSUSE Build Service is sponsored by