theme: add theme_finish()

This commit is contained in:
Johan Malm 2021-02-21 22:03:14 +00:00
parent 9f61a819fc
commit cb2a504440
4 changed files with 23 additions and 2 deletions

View file

@ -9,6 +9,7 @@
#include "common/dir.h"
#include "common/log.h"
#include "common/string-helpers.h"
#include "common/zfree.h"
#include "theme/theme.h"
#include "xbm/xbm.h"
@ -135,3 +136,14 @@ theme_init(struct theme *theme, struct wlr_renderer *renderer,
theme_read(theme, theme_name);
xbm_load(theme, renderer);
}
void
theme_finish(struct theme *theme)
{
zfree(theme->xbm_close_active_unpressed);
zfree(theme->xbm_maximize_active_unpressed);
zfree(theme->xbm_iconify_active_unpressed);
zfree(theme->xbm_close_inactive_unpressed);
zfree(theme->xbm_maximize_inactive_unpressed);
zfree(theme->xbm_iconify_inactive_unpressed);
}