[bijiben] Fix leaks on finalizers not complete (note_obj, controller)



commit d4f28f3275c2b057c903c1810c3c7acf90057214
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Fri Feb 8 23:46:37 2013 +0100

    Fix leaks on finalizers not complete (note_obj, controller)

 src/bjb-controller.c        |    1 +
 src/libbiji/biji-note-obj.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/bjb-controller.c b/src/bjb-controller.c
index f07ccf2..751fe8a 100644
--- a/src/bjb-controller.c
+++ b/src/bjb-controller.c
@@ -121,6 +121,7 @@ bjb_controller_finalize (GObject *object)
 
   g_object_unref (priv->completion);
   g_free (priv->needle);
+  g_list_free (priv->notes_to_show);
 
   G_OBJECT_CLASS (bjb_controller_parent_class)->finalize (object);
 }
diff --git a/src/libbiji/biji-note-obj.c b/src/libbiji/biji-note-obj.c
index 2267e76..ae7fc24 100644
--- a/src/libbiji/biji-note-obj.c
+++ b/src/libbiji/biji-note-obj.c
@@ -154,6 +154,7 @@ biji_note_obj_finalize (GObject *object)
   g_hash_table_destroy (priv->labels);
 
   g_clear_object (&priv->icon);
+  gdk_rgba_free (priv->color);
 
   G_OBJECT_CLASS (biji_note_obj_parent_class)->finalize (object);
 }


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