[gnome-terminal] Unref the introspection data directly



commit 6c39726dd224bff4270e3a3203b0ec3e97cda356
Author: Christian Persch <chpe gnome org>
Date:   Sun Jul 18 21:19:52 2010 +0200

    Unref the introspection data directly

 src/terminal.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal.c b/src/terminal.c
index a4a40ec..9467b98 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -270,9 +270,10 @@ bus_acquired_cb (GDBusConnection *connection,
                                                        TERMINAL_FACTORY_SERVICE_PATH,
                                                        introspection_data->interfaces[0],
                                                        &interface_vtable,
-                                                       introspection_data,
-                                                       (GDestroyNotify) g_dbus_node_info_unref,
+                                                       NULL, NULL,
                                                        &error);
+  g_dbus_node_info_unref (introspection_data);
+
   if (registration_id == 0) {
     g_printerr ("Failed to register object: %s\n", error->message);
     g_error_free (error);



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