diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-04-27 00:09:18 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-04-29 06:40:50 -0400 |
commit | a76ae3eb85d4f92a3ccae1a1f5c1f008c87e7507 (patch) | |
tree | baf0689b8281eb1aee323c8590a647b68b537421 | |
parent | de1660132e6180544622429f0ee97f12096fb6cb (diff) | |
download | gtk+-a76ae3eb85d4f92a3ccae1a1f5c1f008c87e7507.tar.gz |
Fix a crash
Fix an oversight from fc1643956baa.
-rw-r--r-- | gtk/gtkapplication-dbus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkapplication-dbus.c b/gtk/gtkapplication-dbus.c index dc0e1bcedb..2c9a1a78ef 100644 --- a/gtk/gtkapplication-dbus.c +++ b/gtk/gtkapplication-dbus.c @@ -899,7 +899,8 @@ gtk_application_impl_dbus_finalize (GObject *object) g_free (dbus->app_menu_path); g_free (dbus->menubar_path); g_clear_object (&dbus->sm_proxy); - g_signal_handlers_disconnect_by_func (dbus->ss_proxy, screensaver_signal_session, dbus->impl.application); + if (dbus->ss_proxy) + g_signal_handlers_disconnect_by_func (dbus->ss_proxy, screensaver_signal_session, dbus->impl.application); g_clear_object (&dbus->ss_proxy); G_OBJECT_CLASS (gtk_application_impl_dbus_parent_class)->finalize (object); |