From a158fc575752d27011b6206050d3ba63224350b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Fri, 17 Oct 2014 00:58:09 -0400 Subject: [PATCH] application: handle ref count of GtkCssProvider correctly It seems gtk_style_context_add_provider_for_screen increase the ref count of the GtkCssProvider (maybe copy it to GdkScreen and this isn't releasing it correctly). We're forcing an _unref to keep the destruction process working as expected. Previously gtk_css_provider_finalize was not called at any time on the closing process. --- src/gcal-application.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gcal-application.c b/src/gcal-application.c index 29f6fe16..a0d2d49b 100644 --- a/src/gcal-application.c +++ b/src/gcal-application.c @@ -187,6 +187,7 @@ gcal_application_startup (GApplication *app) NULL); g_object_unref (css_file); + g_object_unref (priv->provider); } priv->manager = gcal_manager_new ();