diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-08-31 09:51:48 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-08-31 09:51:48 +0200 |
commit | 6775dc1002fd565f6e1697ad03baa3eedecf4fdb (patch) | |
tree | 550cbdee578e6e74abb2f3603ee640f106adcf33 /document-portal | |
parent | bfeaccb822184219f08138911f662d9e6c898bad (diff) | |
download | xdg-app-6775dc1002fd565f6e1697ad03baa3eedecf4fdb.tar.gz |
Use g_auto(GStrv) instead of glnx_strfreev
Diffstat (limited to 'document-portal')
-rw-r--r-- | document-portal/xdp-fuse.c | 2 | ||||
-rw-r--r-- | document-portal/xdp-main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c index c245c19..18e8dc7 100644 --- a/document-portal/xdp-fuse.c +++ b/document-portal/xdp-fuse.c @@ -211,7 +211,7 @@ get_app_name_from_id (guint32 id) static void fill_app_name_hash (void) { - glnx_strfreev char **keys = NULL; + g_auto(GStrv) keys = NULL; int i; keys = xdp_list_apps (); diff --git a/document-portal/xdp-main.c b/document-portal/xdp-main.c index e3d87ce..94d68ff 100644 --- a/document-portal/xdp-main.c +++ b/document-portal/xdp-main.c @@ -47,7 +47,7 @@ guint32 * xdp_list_docs (void) { GArray *res; - glnx_strfreev char **ids; + g_auto(GStrv) ids = NULL; guint32 id; int i; @@ -224,7 +224,7 @@ do_create_doc (const char *path) { g_autoptr(GVariant) data = g_variant_ref_sink (g_variant_new_bytestring (path)); g_autoptr (XdgAppDbEntry) entry = NULL; - glnx_strfreev char **ids = NULL; + g_auto(GStrv) ids = NULL; char *id = NULL; ids = xdg_app_db_list_ids_by_value (db, data); |