mirror of
https://github.com/labwc/labwc.git
synced 2026-03-02 01:40:24 -05:00
theme: fix memory leak of button icons
This commit is contained in:
parent
1b122422f5
commit
5979cc137a
1 changed files with 25 additions and 0 deletions
25
src/theme.c
25
src/theme.c
|
|
@ -1397,10 +1397,35 @@ theme_init(struct theme *theme, struct server *server, const char *theme_name)
|
||||||
void
|
void
|
||||||
theme_finish(struct theme *theme)
|
theme_finish(struct theme *theme)
|
||||||
{
|
{
|
||||||
|
zdrop(&theme->button_close_active_unpressed);
|
||||||
|
zdrop(&theme->button_maximize_active_unpressed);
|
||||||
|
zdrop(&theme->button_restore_active_unpressed);
|
||||||
|
zdrop(&theme->button_iconify_active_unpressed);
|
||||||
|
zdrop(&theme->button_menu_active_unpressed);
|
||||||
|
|
||||||
|
zdrop(&theme->button_close_inactive_unpressed);
|
||||||
|
zdrop(&theme->button_maximize_inactive_unpressed);
|
||||||
|
zdrop(&theme->button_restore_inactive_unpressed);
|
||||||
|
zdrop(&theme->button_iconify_inactive_unpressed);
|
||||||
|
zdrop(&theme->button_menu_inactive_unpressed);
|
||||||
|
|
||||||
|
zdrop(&theme->button_close_active_hover);
|
||||||
|
zdrop(&theme->button_maximize_active_hover);
|
||||||
|
zdrop(&theme->button_restore_active_hover);
|
||||||
|
zdrop(&theme->button_iconify_active_hover);
|
||||||
|
zdrop(&theme->button_menu_active_hover);
|
||||||
|
|
||||||
|
zdrop(&theme->button_close_inactive_hover);
|
||||||
|
zdrop(&theme->button_maximize_inactive_hover);
|
||||||
|
zdrop(&theme->button_restore_inactive_hover);
|
||||||
|
zdrop(&theme->button_iconify_inactive_hover);
|
||||||
|
zdrop(&theme->button_menu_inactive_hover);
|
||||||
|
|
||||||
zdrop(&theme->corner_top_left_active_normal);
|
zdrop(&theme->corner_top_left_active_normal);
|
||||||
zdrop(&theme->corner_top_left_inactive_normal);
|
zdrop(&theme->corner_top_left_inactive_normal);
|
||||||
zdrop(&theme->corner_top_right_active_normal);
|
zdrop(&theme->corner_top_right_active_normal);
|
||||||
zdrop(&theme->corner_top_right_inactive_normal);
|
zdrop(&theme->corner_top_right_inactive_normal);
|
||||||
|
|
||||||
zdrop(&theme->shadow_corner_top_active);
|
zdrop(&theme->shadow_corner_top_active);
|
||||||
zdrop(&theme->shadow_corner_bottom_active);
|
zdrop(&theme->shadow_corner_bottom_active);
|
||||||
zdrop(&theme->shadow_edge_active);
|
zdrop(&theme->shadow_edge_active);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue