[libgsf] zip: avoid g_autofree.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsf] zip: avoid g_autofree.
- Date: Tue, 28 Jan 2020 20:53:19 +0000 (UTC)
commit 88385a7af3784afeae1faecd0ad05c3852b0ca0e
Author: Morten Welinder <terra gnome org>
Date: Tue Jan 28 15:52:51 2020 -0500
zip: avoid g_autofree.
gsf/gsf-outfile-zip.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gsf/gsf-outfile-zip.c b/gsf/gsf-outfile-zip.c
index 68d71fb..54bd0d6 100644
--- a/gsf/gsf-outfile-zip.c
+++ b/gsf/gsf-outfile-zip.c
@@ -914,8 +914,8 @@ gsf_outfile_zip_new_child (GsfOutfile *parent,
size_t n_params = 0;
GsfParam *params = NULL;
char *display_name;
- g_autofree const char **names = NULL;
- g_autofree GValue *values = NULL;
+ const char **names;
+ GValue *values;
g_return_val_if_fail (zip_parent != NULL, NULL);
g_return_val_if_fail (zip_parent->vdir, NULL);
@@ -944,6 +944,8 @@ gsf_outfile_zip_new_child (GsfOutfile *parent,
names,
values);
gsf_prop_settings_free (params, n_params);
+ g_free (names);
+ g_free (values);
child->zip64 = zip_parent->zip64;
child->vdir = gsf_zip_vdir_new (name, is_dir, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]