summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-app.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/asb-app.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/asb-app.c')
-rw-r--r--libappstream-builder/asb-app.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libappstream-builder/asb-app.c b/libappstream-builder/asb-app.c
index d5d20d2..fe422f4 100644
--- a/libappstream-builder/asb-app.c
+++ b/libappstream-builder/asb-app.c
@@ -211,8 +211,8 @@ asb_app_save_resources (AsbApp *app, AsbAppSaveFlags save_flags, GError **error)
icons = as_app_get_icons (AS_APP (app));
for (i = 0; icons != NULL && i < icons->len; i++) {
const gchar *tmpdir;
- _cleanup_free_ gchar *filename = NULL;
- _cleanup_free_ gchar *size_str = NULL;
+ g_autofree gchar *filename = NULL;
+ g_autofree gchar *size_str = NULL;
/* don't save some types of icons */
icon = g_ptr_array_index (icons, i);
@@ -275,7 +275,7 @@ asb_app_new (AsbPackage *pkg, const gchar *id)
break;
case ASB_PACKAGE_KIND_BUNDLE:
{
- _cleanup_object_unref_ AsBundle *bundle = NULL;
+ g_autoptr(AsBundle) bundle = NULL;
bundle = as_bundle_new ();
as_bundle_set_id (bundle, asb_package_get_source (pkg));
as_bundle_set_kind (bundle, AS_BUNDLE_KIND_XDG_APP);