[gnome-documents] tagged-entry: don't leak the tag when removing it



commit d5fb7a3bb47ab3ef43d8f08775636f868bc71aaf
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Dec 1 00:59:22 2011 -0500

    tagged-entry: don't leak the tag when removing it
    
    Most importantly, destroy its GdkWindow.

 src/lib/gd-tagged-entry.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/lib/gd-tagged-entry.c b/src/lib/gd-tagged-entry.c
index 7bfac13..93a6bd5 100644
--- a/src/lib/gd-tagged-entry.c
+++ b/src/lib/gd-tagged-entry.c
@@ -911,6 +911,7 @@ gd_tagged_entry_remove_tag (GdTaggedEntry *self,
     {
       res = TRUE;
       self->priv->tags = g_list_remove (self->priv->tags, tag);
+      gd_tagged_entry_tag_free (tag);
 
       gtk_widget_queue_resize (GTK_WIDGET (self));
     }



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