Skip to content

Commit

Permalink
libmalcontent-ui: Add g_autolist() to simplify memory management
Browse files Browse the repository at this point in the history
This introduces no functional changes.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
  • Loading branch information
pwithnall committed Oct 15, 2020
1 parent 792a069 commit d01f063
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libmalcontent-ui/restrict-applications-selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ app_compare_id_length_cb (gconstpointer a,
static void
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_executables = NULL;

Expand Down Expand Up @@ -485,8 +486,6 @@ reload_apps (MctRestrictApplicationsSelector *self)
compare_app_info_cb,
self);
}

g_list_free_full (apps, g_object_unref);
}

static void
Expand Down

0 comments on commit d01f063

Please sign in to comment.