mirror of
https://github.com/labwc/labwc.git
synced 2026-03-29 07:58:10 -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);
|
osd_on_view_destroy(view);
|
||||||
undecorate(view);
|
undecorate(view);
|
||||||
|
|
||||||
if (view->icon.buffers.data) {
|
view_set_icon(view, NULL, NULL);
|
||||||
view_set_icon(view, NULL, NULL);
|
|
||||||
}
|
|
||||||
zfree(view->icon.name);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The layer-shell top-layer is disabled when an application is running
|
* The layer-shell top-layer is disabled when an application is running
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue