summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Limonciello <superm1@gmail.com>2016-08-22 11:08:19 -0400
committerRichard Hughes <richard@hughsie.com>2016-08-22 16:08:19 +0100
commit0e972b9aaee72e3a231b170adb168a535c00e98b (patch)
tree13fe776947bac25d20d311891c308177215640fb
parentb4d4fa4a37876d57e10707eb4cd05ec83f6afffd (diff)
downloadappstream-glib-0e972b9aaee72e3a231b170adb168a535c00e98b.tar.gz
trivial: Use correct autoptr cleanup on yaml error when loading from a file. (#133)
-rw-r--r--libappstream-glib/as-yaml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-yaml.c b/libappstream-glib/as-yaml.c
index 77946b6..1a5ba53 100644
--- a/libappstream-glib/as-yaml.c
+++ b/libappstream-glib/as-yaml.c
@@ -441,7 +441,7 @@ as_yaml_read_handler_cb (void *data,
AsNode *
as_yaml_from_file (GFile *file, GCancellable *cancellable, GError **error)
{
- g_autoptr(AsNode) node = NULL;
+ g_autoptr(AsYaml) node = NULL;
#if AS_BUILD_DEP11
const gchar *content_type = NULL;
yaml_parser_t parser;