diff options
author | Richard Hughes <richard@hughsie.com> | 2016-08-18 09:47:36 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-08-18 09:51:42 +0100 |
commit | 649a59e7d78e0b26ee1d24560671109de018bc75 (patch) | |
tree | 6aed766e4b2573d2f8dfc3a1e56a9d491e8e0c75 | |
parent | d6253fe015293d793b273212f17cb2885d36270d (diff) | |
download | appstream-glib-649a59e7d78e0b26ee1d24560671109de018bc75.tar.gz |
trivial: Fix a small memory leak in AsStore
-rw-r--r-- | libappstream-glib/as-store.c | 2 |
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); } |