[glib] Avoid a segfault in g_application_register()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Avoid a segfault in g_application_register()
- Date: Tue, 11 Jan 2011 01:29:34 +0000 (UTC)
commit eec2cb1af873f38091671486b5adc5d444e306b7
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 10 20:28:17 2011 -0500
Avoid a segfault in g_application_register()
Patch by Mikkel Kamstrup Erlandsen
https://bugzilla.gnome.org/show_bug.cgi?id=639177
gio/gapplicationimpl-dbus.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c
index ca072ac..406b839 100644
--- a/gio/gapplicationimpl-dbus.c
+++ b/gio/gapplicationimpl-dbus.c
@@ -668,7 +668,7 @@ g_application_impl_register (GApplication *application,
g_free (impl->object_path);
g_slice_free (GApplicationImpl, impl);
- impl = NULL;
+ return NULL;
}
}
@@ -676,7 +676,7 @@ g_application_impl_register (GApplication *application,
* This also serves as a mechanism to ensure that the primary exists
* (ie: DBus service files installed correctly, etc).
*/
- impl->signal_id =
+ impl->signal_id =
g_dbus_connection_signal_subscribe (impl->session_bus, impl->bus_name,
"org.gtk.Actions", NULL,
impl->object_path, NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]