view: simplify freeing of view->icon

This commit is contained in:
tokyo4j 2025-06-07 16:28:08 +09:00 committed by Johan Malm
parent 74018495cd
commit 624cf85afe

View file

@ -2592,10 +2592,7 @@ view_destroy(struct view *view)
osd_on_view_destroy(view);
undecorate(view);
if (view->icon.buffers.data) {
view_set_icon(view, NULL, NULL);
}
zfree(view->icon.name);
view_set_icon(view, NULL, NULL);
/*
* The layer-shell top-layer is disabled when an application is running