From 97b29ba57a0b31f6652857d9075739a667316dee Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 13 Oct 2021 16:12:20 +0200 Subject: caja-python: missing g_strdup --- src/caja-python.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/caja-python.c b/src/caja-python.c index 60841b6..7d8e526 100644 --- a/src/caja-python.c +++ b/src/caja-python.c @@ -130,7 +130,7 @@ caja_python_load_file(GTypeModule *type_module, gtype = caja_python_object_get_type(type_module, value); g_array_append_val(all_types, gtype); - all_pyfiles = g_list_append(all_pyfiles, (gchar*)filename); + all_pyfiles = g_list_append(all_pyfiles, g_strdup(filename)); } } @@ -336,7 +336,7 @@ caja_module_shutdown(void) Py_Finalize(); g_array_free(all_types, TRUE); - g_list_free (all_pyfiles); + g_list_free_full(all_pyfiles, g_free); } void -- cgit v1.2.1