[gnome-terminal] prefs: Plug a mem leak



commit e2e09ed50c50a50c664292766d566d4b31ad6956
Author: Christian Persch <chpe src gnome org>
Date:   Wed May 1 20:40:48 2019 +0200

    prefs: Plug a mem leak

 src/terminal-prefs.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/terminal-prefs.c b/src/terminal-prefs.c
index 5e9b3293..07c50a12 100644
--- a/src/terminal-prefs.c
+++ b/src/terminal-prefs.c
@@ -595,6 +595,8 @@ listbox_add_all_profiles (PrefData *data)
     gtk_list_box_insert (data->listbox, GTK_WIDGET (row), -1);
   }
 
+  g_list_free(list); /* the items themselves were adopted into the model above */
+
   listbox_update (data->listbox);  /* FIXME: This is not needed but I don't know why :-) */
 }
 


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