Do not crash when freeing layout cell, reported by Jere Viikari.

This commit is contained in:
nicm
2026-05-24 08:40:43 +00:00
parent 3cfc96d4de
commit f047b3f8e7
4 changed files with 7 additions and 7 deletions

View File

@@ -304,8 +304,7 @@ layout_parse(struct window *w, const char *layout, char **cause)
layout_print_cell(tiled_lc, __func__, 0);
/* Free the floating layout cell, no longer needed. */
if (floating_lc != NULL)
layout_free_cell(floating_lc);
layout_free_cell(floating_lc);
notify_window("window-layout-changed", w);