[glib/wip/gapplication] Minor tweak



commit 2bd1df43a200ee0c3a7a21488fd989549063a50e
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 7 07:59:53 2010 -0400

    Minor tweak

 gio/gdbusapplication.c |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/gio/gdbusapplication.c b/gio/gdbusapplication.c
index 0eae10f..012845d 100644
--- a/gio/gdbusapplication.c
+++ b/gio/gdbusapplication.c
@@ -407,16 +407,20 @@ static void
 _g_application_platform_activate (GApplication *app,
                                   GVariant     *data)
 {
+  GVariant *result;
+
   ensure_bus (app);
 
-  if (app->priv->session_bus)
-    g_dbus_connection_call_sync (app->priv->session_bus,
-                                 app->priv->appid,
-                                 app->priv->dbus_path,
-                                 G_APPLICATION_IFACE,
-                                 "Activate",
-                                 data,
-                                 NULL, 0, -1, NULL, NULL);
+  result = g_dbus_connection_call_sync (app->priv->session_bus,
+                                        app->priv->appid,
+                                        app->priv->dbus_path,
+                                        G_APPLICATION_IFACE,
+                                        "Activate",
+                                        data,
+                                        NULL, 0, -1, NULL, NULL);
+
+  if (result)
+    g_variant_unref (result);
 
   exit (0);
 }



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