summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-store.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-09-14 11:51:53 +0100
committerRichard Hughes <richard@hughsie.com>2015-09-14 11:51:53 +0100
commit55cf07cba0f39cc6dbff0cb86c8c42920d7edf2a (patch)
tree83c4ce06e4f05b3b1793537f2c49b6884b1224e0 /libappstream-glib/as-store.c
parentdc22accbc209994aca5a3b60d7d9f6b04e44c23a (diff)
downloadappstream-glib-55cf07cba0f39cc6dbff0cb86c8c42920d7edf2a.tar.gz
Use specific types to remove the last _cleanup_free usage
Diffstat (limited to 'libappstream-glib/as-store.c')
-rw-r--r--libappstream-glib/as-store.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c
index e84c851..bf06cb9 100644
--- a/libappstream-glib/as-store.c
+++ b/libappstream-glib/as-store.c
@@ -37,7 +37,6 @@
#include "config.h"
#include "as-app-private.h"
-#include "as-cleanup.h"
#include "as-node-private.h"
#include "as-problem.h"
#include "as-monitor.h"
@@ -968,7 +967,7 @@ as_store_load_yaml_file (AsStore *store,
const gchar *tmp;
g_autofree AsNodeContext *ctx = NULL;
g_autofree gchar *icon_path = NULL;
- _cleanup_yaml_unref_ GNode *root = NULL;
+ g_autoptr(AsYaml) root = NULL;
_cleanup_uninhibit_ guint32 *tok = NULL;
/* load file */
@@ -1153,7 +1152,7 @@ as_store_from_file (AsStore *store,
AsStorePrivate *priv = GET_PRIVATE (store);
g_autofree gchar *filename = NULL;
g_autoptr(GError) error_local = NULL;
- _cleanup_node_unref_ GNode *root = NULL;
+ g_autoptr(AsNode) root = NULL;
g_return_val_if_fail (AS_IS_STORE (store), FALSE);
@@ -1213,7 +1212,7 @@ as_store_from_xml (AsStore *store,
GError **error)
{
g_autoptr(GError) error_local = NULL;
- _cleanup_node_unref_ GNode *root = NULL;
+ g_autoptr(AsNode) root = NULL;
g_return_val_if_fail (AS_IS_STORE (store), FALSE);
g_return_val_if_fail (data != NULL, FALSE);