From 144923338202efaa1ac90a1ff252984659bd36fd Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Tue, 22 Nov 2016 16:21:43 +0530 Subject: [PATCH] application: cleanup finalize method Calendar now segfaults due to faling function gtk_style_context_remove_provider_for_screen in application finalize method. As application finalize method is called only when the application closes, there isn't any hard requirement to cleanup every trailings. Operating System shall take care of that. So removing the failing functions so as to not segfault on exit anymore. https://bugzilla.gnome.org/show_bug.cgi?id=773871 --- src/gcal-application.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/gcal-application.c b/src/gcal-application.c index 4ee4cae8..152fa3c4 100644 --- a/src/gcal-application.c +++ b/src/gcal-application.c @@ -207,14 +207,7 @@ gcal_application_finalize (GObject *object) g_free (self->uuid); g_clear_pointer (&self->initial_date, g_free); - if (self->provider != NULL) - { - gtk_style_context_remove_provider_for_screen (gdk_screen_get_default (), GTK_STYLE_PROVIDER (self->colors_provider)); - - gtk_style_context_remove_provider_for_screen (gdk_screen_get_default (), GTK_STYLE_PROVIDER (self->provider)); - g_clear_object (&(self->provider)); - } - + g_clear_object (&(self->provider)); g_clear_object (&self->colors_provider); g_clear_object (&self->settings);