diff options
author | rbuj <[email protected]> | 2021-10-13 16:12:20 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-10-26 13:34:05 +0200 |
commit | 97b29ba57a0b31f6652857d9075739a667316dee (patch) | |
tree | de9f79b58b57d55a8068338dbc9445a96c0ccfb8 /src | |
parent | 94538f876fb3780ad4415476a4fdbc0b73298d09 (diff) | |
download | python-caja-97b29ba57a0b31f6652857d9075739a667316dee.tar.bz2 python-caja-97b29ba57a0b31f6652857d9075739a667316dee.tar.xz |
caja-python: missing g_strdup
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-python.c | 4 |
1 files 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 |