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

@@ -78,6 +78,9 @@ layout_free_cell(struct layout_cell *lc)
{
struct layout_cell *lcchild;
if (lc == NULL)
return;
switch (lc->type) {
case LAYOUT_LEFTRIGHT:
case LAYOUT_TOPBOTTOM: