From fb2461b813e2cac37464d0a828c3c55530ce4e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Fri, 17 Oct 2014 00:54:04 -0400 Subject: [PATCH] application: properly quit application Fixes destruction process. Calling g_application_quit skip the reference decreasing process of GApplication and that resulted in a bunch of _finalize methods not being called. By removing the windows GApplication finalize properly. --- src/gcal-application.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gcal-application.c b/src/gcal-application.c index 0b743e54..7254a8dc 100644 --- a/src/gcal-application.c +++ b/src/gcal-application.c @@ -329,7 +329,12 @@ gcal_application_quit (GSimpleAction *simple, GVariant *parameter, gpointer user_data) { - g_application_quit (G_APPLICATION (user_data)); + GcalApplicationPrivate *priv; + + priv = + gcal_application_get_instance_private (GCAL_APPLICATION (user_data)); + + gtk_widget_destroy (priv->window); } /* Public API */