Skip to content

Commit

Permalink
theme: minor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
johanmalm committed Oct 22, 2024
1 parent 917714f commit d97f0a2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/theme.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,10 @@ theme_free_vector(struct themes *themes)
{
for (int i = 0; i < themes->nr; ++i) {
struct theme *theme = themes->data + i;
if (theme->name) {
free(theme->name);
}
if (theme->path) {
free(theme->path);
}
free(theme->name);
free(theme->path);
}
free(themes->data);
themes->data = NULL;
}

0 comments on commit d97f0a2

Please sign in to comment.