mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
view: simplify freeing of view->icon
This commit is contained in:
parent
74018495cd
commit
624cf85afe
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue