another MONITOR_HEAP bit

'heaputil' complains about free(NULL) because that wasn't handled
consistently back in the pre-standard days.  Avoid using that.
This commit is contained in:
PatR
2025-04-17 11:40:07 -07:00
parent b03e1ee3cb
commit a6ffebf320

View File

@@ -1184,8 +1184,8 @@ themerooms_post_level_generate(void)
iflags.in_lua = gi.in_mk_themerooms = FALSE;
wallification(1, 0, COLNO - 1, ROWNO - 1);
free(gc.coder);
gc.coder = NULL;
if (gc.coder)
free(gc.coder), gc.coder = NULL;
lua_gc(themes, LUA_GCCOLLECT);
}