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
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
006ee30495
commit
1449233382
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user