mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Avoid a segfault in g_application_register()
Patch by Mikkel Kamstrup Erlandsen https://bugzilla.gnome.org/show_bug.cgi?id=639177
This commit is contained in:
parent
48f2731760
commit
eec2cb1af8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user