summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-screenshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-glib/as-screenshot.c')
-rw-r--r--libappstream-glib/as-screenshot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libappstream-glib/as-screenshot.c b/libappstream-glib/as-screenshot.c
index bc3393d..87547cf 100644
--- a/libappstream-glib/as-screenshot.c
+++ b/libappstream-glib/as-screenshot.c
@@ -323,7 +323,7 @@ as_screenshot_node_parse (AsScreenshot *screenshot, GNode *node, GError **error)
GNode *c;
const gchar *tmp;
guint size;
- _cleanup_unref_hashtable GHashTable *captions = NULL;
+ _cleanup_hashtable_unref_ GHashTable *captions = NULL;
tmp = as_node_get_attribute (node, "type");
if (tmp != NULL) {
@@ -334,7 +334,7 @@ as_screenshot_node_parse (AsScreenshot *screenshot, GNode *node, GError **error)
/* add captions */
captions = as_node_get_localized (node, "caption");
if (captions != NULL) {
- _cleanup_free_list GList *keys;
+ _cleanup_list_free_ GList *keys;
keys = g_hash_table_get_keys (captions);
for (l = keys; l != NULL; l = l->next) {
tmp = l->data;
@@ -363,7 +363,7 @@ as_screenshot_node_parse (AsScreenshot *screenshot, GNode *node, GError **error)
/* add images */
for (c = node->children; c != NULL; c = c->next) {
- _cleanup_unref_object AsImage *image = NULL;
+ _cleanup_object_unref_ AsImage *image = NULL;
if (as_node_get_tag (c) != AS_TAG_IMAGE)
continue;
image = as_image_new ();