[network-manager-netbook] Fix a memory leak



commit 4cc2b8faa9ce89ec34ca189705b018c190e3da30
Author: Tambet Ingo <tambet gmail com>
Date:   Mon Dec 14 11:34:19 2009 +0200

    Fix a memory leak

 src/nmn-item-renderer.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nmn-item-renderer.c b/src/nmn-item-renderer.c
index 599d737..b7cb3cd 100644
--- a/src/nmn-item-renderer.c
+++ b/src/nmn-item-renderer.c
@@ -286,6 +286,7 @@ remove_button_clicked (GtkButton *button, gpointer user_data)
                                   name);
 
     label = gtk_label_new (label_text);
+    g_free (label_text);
 
     gtk_box_set_spacing (GTK_BOX (dialog->vbox), 12);
     gtk_box_pack_start (GTK_BOX (dialog->vbox), label, TRUE, TRUE, 6);



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