[gnome-calendar/gnome-3-22] application: cleanup finalize method
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-22] application: cleanup finalize method
- Date: Thu, 9 Feb 2017 13:33:06 +0000 (UTC)
commit 62e91bffba2f1166316b028363f7b8d62b83c436
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 376a745..c8475b0 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]