[gnome-calendar] application: cleanup finalize method



commit 144923338202efaa1ac90a1ff252984659bd36fd
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Tue Nov 22 16:21:43 2016 +0530

    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 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/gcal-application.c b/src/gcal-application.c
index 4ee4cae..152fa3c 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]