summaryrefslogtreecommitdiff
path: root/libappstream-builder/plugins/asb-plugin-ibus-xml.c
diff options
context:
space:
mode:
authorKalev Lember <klember@redhat.com>2015-09-08 14:30:28 +0200
committerKalev Lember <klember@redhat.com>2015-09-08 14:32:23 +0200
commit6ef00b04680e3bfb8923158f7ffef3de8d9b09ef (patch)
tree0b21f7b95bc27223621ae657c2b04f20b78df877 /libappstream-builder/plugins/asb-plugin-ibus-xml.c
parenta3d06c5cb6f85e963be74e8866e1c3bc71ee4990 (diff)
downloadappstream-glib-6ef00b04680e3bfb8923158f7ffef3de8d9b09ef.tar.gz
Use GLib's cleanup functions instead of libgsystem's
We still have a few types that don't support g_autoptr(), but very very close to having everything ported over. This also bumps gdk-pixbuf dep to 2.31.5 for the cleanup macro support.
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-ibus-xml.c')
-rw-r--r--libappstream-builder/plugins/asb-plugin-ibus-xml.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-ibus-xml.c b/libappstream-builder/plugins/asb-plugin-ibus-xml.c
index 0638725..f5180fb 100644
--- a/libappstream-builder/plugins/asb-plugin-ibus-xml.c
+++ b/libappstream-builder/plugins/asb-plugin-ibus-xml.c
@@ -82,13 +82,13 @@ asb_plugin_process_filename (AsbPlugin *plugin,
gboolean found_header = FALSE;
gboolean ret;
guint i;
- _cleanup_free_ gchar *basename = NULL;
- _cleanup_free_ gchar *data = NULL;
- _cleanup_free_ gchar *filename_tmp = NULL;
- _cleanup_object_unref_ AsbApp *app = NULL;
- _cleanup_object_unref_ AsIcon *icon = NULL;
- _cleanup_strv_free_ gchar **languages = NULL;
- _cleanup_strv_free_ gchar **lines = NULL;
+ g_autofree gchar *basename = NULL;
+ g_autofree gchar *data = NULL;
+ g_autofree gchar *filename_tmp = NULL;
+ g_autoptr(AsbApp) app = NULL;
+ g_autoptr(AsIcon) icon = NULL;
+ g_auto(GStrv) languages = NULL;
+ g_auto(GStrv) lines = NULL;
/* open file */
filename_tmp = g_build_filename (tmpdir, filename, NULL);