]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: simplify freeing of view->icon
authortokyo4j <hrak1529@gmail.com>
Sat, 7 Jun 2025 07:28:08 +0000 (16:28 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 7 Jun 2025 07:51:37 +0000 (08:51 +0100)
src/view.c

index 415fe83bbeed58ea494a3511ba6c2fd0d16ad772..33b9ec398e07fc81343b9a3fd135e4acb5189e9f 100644 (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