[nautilus/wip/antoniof/template-leaks: 3/6] list-view: Don't leak container array
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/template-leaks: 3/6] list-view: Don't leak container array
- Date: Sat, 19 Dec 2020 18:54:24 +0000 (UTC)
commit a563c3e1d0eeba3724908d9eb3439fbdcb50864c
Author: António Fernandes <antoniof gnome org>
Date: Sat Dec 19 15:11:43 2020 +0000
list-view: Don't leak container array
When converting the array into a list, the list takes the data bug the
original container is leaked. Free it.
Found in valgrind file provided by nekohayo.
src/nautilus-list-view.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 66e3373e2..c7f688afa 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -2479,6 +2479,8 @@ default_column_array_as_list (gchar **array)
i++;
}
+ g_free (array);
+
return res;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]