[gnome-calendar] application: free properties' memory on finalize
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] application: free properties' memory on finalize
- Date: Thu, 4 Dec 2014 22:37:33 +0000 (UTC)
commit 6c7593dbb1a17896a38d8563570bd20020ce8abc
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Fri Oct 17 00:56:29 2014 -0400
application: free properties' memory on finalize
Note: GtkCssProvider doesn't finalize correctly yet, but it is correct
to clear the reference belonging to the application.
src/gcal-application.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-application.c b/src/gcal-application.c
index 7254a8d..29f6fe1 100644
--- a/src/gcal-application.c
+++ b/src/gcal-application.c
@@ -120,9 +120,10 @@ gcal_application_finalize (GObject *object)
priv = gcal_application_get_instance_private (GCAL_APPLICATION (object));
g_clear_object (&(priv->settings));
+ g_clear_object (&(priv->provider));
+ g_clear_object (&(priv->manager));
- if (G_OBJECT_CLASS (gcal_application_parent_class)->finalize != NULL)
- G_OBJECT_CLASS (gcal_application_parent_class)->finalize (object);
+ G_OBJECT_CLASS (gcal_application_parent_class)->finalize (object);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]