all repos — tint2 @ 0c71fda5e188ca404f61e5e3e7b7d6c556b8d890

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Button: fix memory leak
o9000 mrovi9000@gmail.com
commit

0c71fda5e188ca404f61e5e3e7b7d6c556b8d890

parent

8eaf187984ff49c2818c9c282e9d1de5f411992f

1 files changed, 3 insertions(+), 5 deletions(-)

jump to
M src/button/button.csrc/button/button.c

@@ -52,11 +52,9 @@ {

Button *button = (Button *)obj; if (button->frontend) { // This is a frontend element - if (button->frontend->icon) { - imlib_context_set_image(button->frontend->icon); - imlib_free_image(); - button->frontend->icon = NULL; - } + free_icon(button->frontend->icon); + free_icon(button->frontend->icon_hover); + free_icon(button->frontend->icon_pressed); button->backend->instances = g_list_remove_all(button->backend->instances, button); free_and_null(button->frontend); remove_area(&button->area);