[gnome-calendar] application: handle ref count of GtkCssProvider correctly



commit a158fc575752d27011b6206050d3ba63224350b7
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Fri Oct 17 00:58:09 2014 -0400

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-application.c b/src/gcal-application.c
index 29f6fe1..a0d2d49 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 ();


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