From: tokyo4j Date: Sat, 7 Jun 2025 07:28:08 +0000 (+0900) Subject: view: simplify freeing of view->icon X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=624cf85afed78ae9c51e0c3d69b86053e174dd07;p=proto%2Flabwc.git view: simplify freeing of view->icon --- diff --git a/src/view.c b/src/view.c index 415fe83b..33b9ec39 100644 --- a/src/view.c +++ b/src/view.c @@ -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