diff options
author | Mario Limonciello <superm1@gmail.com> | 2016-08-22 11:08:19 -0400 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-08-22 16:12:27 +0100 |
commit | 57625db18b2cfe6e9d8a39a5d0cf1ed35af50e02 (patch) | |
tree | 266d864e51fd1615149dbe3cbfecd97bee686db9 | |
parent | 481055cd02c5244bede06ca4a06ab55602d01505 (diff) | |
download | appstream-glib-57625db18b2cfe6e9d8a39a5d0cf1ed35af50e02.tar.gz |
trivial: Use correct autoptr cleanup on yaml error when loading from a file. (#133)
-rw-r--r-- | libappstream-glib/as-yaml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-yaml.c b/libappstream-glib/as-yaml.c index 48e51f0..91621ce 100644 --- a/libappstream-glib/as-yaml.c +++ b/libappstream-glib/as-yaml.c @@ -416,7 +416,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; |