libmalcontent-ui: Add g_autolist() to simplify memory management

This introduces no functional changes.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2020-10-15 15:09:11 +01:00
parent 792a069736
commit d01f063c39
1 changed files with 2 additions and 3 deletions

View File

@ -389,7 +389,8 @@ app_compare_id_length_cb (gconstpointer a,
static void static void
reload_apps (MctRestrictApplicationsSelector *self) reload_apps (MctRestrictApplicationsSelector *self)
{ {
GList *iter, *apps; g_autolist(GAppInfo) apps = NULL;
GList *iter;
g_autoptr(GHashTable) seen_flatpak_ids = NULL; g_autoptr(GHashTable) seen_flatpak_ids = NULL;
g_autoptr(GHashTable) seen_executables = NULL; g_autoptr(GHashTable) seen_executables = NULL;
@ -485,8 +486,6 @@ reload_apps (MctRestrictApplicationsSelector *self)
compare_app_info_cb, compare_app_info_cb,
self); self);
} }
g_list_free_full (apps, g_object_unref);
} }
static void static void