summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-08-18 09:47:36 +0100
committerRichard Hughes <richard@hughsie.com>2016-08-18 09:51:42 +0100
commit649a59e7d78e0b26ee1d24560671109de018bc75 (patch)
tree6aed766e4b2573d2f8dfc3a1e56a9d491e8e0c75
parentd6253fe015293d793b273212f17cb2885d36270d (diff)
downloadappstream-glib-649a59e7d78e0b26ee1d24560671109de018bc75.tar.gz
trivial: Fix a small memory leak in AsStore
-rw-r--r--libappstream-glib/as-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c
index f681aae..30b563d 100644
--- a/libappstream-glib/as-store.c
+++ b/libappstream-glib/as-store.c
@@ -475,7 +475,7 @@ _as_app_new_from_unique_id (const gchar *unique_id)
} else {
AsBundleKind kind = as_bundle_kind_from_string (split[1]);
if (kind != AS_BUNDLE_KIND_UNKNOWN) {
- AsBundle *bundle = as_bundle_new ();
+ g_autoptr(AsBundle) bundle = as_bundle_new ();
as_bundle_set_kind (bundle, kind);
as_app_add_bundle (app, bundle);
}