From: Holger Schemel Date: Thu, 25 Feb 2021 11:31:05 +0000 (+0100) Subject: fixed horrible crash bug caused by dereferencing pointer just freed before X-Git-Tag: 4.2.3.1~7 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=32a7ec491c419e19b9b55a9a79d812e8ddd1e678;p=rocksndiamonds.git fixed horrible crash bug caused by dereferencing pointer just freed before --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 315c615f..d88af07c 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -4547,6 +4547,8 @@ void UpdateLastPlayedLevels_TreeInfo(void) freeTreeInfo(*node_new); + *node_new = NULL; + for (i = 0; last_level_series[i] != NULL; i++) { LevelDirTree *node_last = getTreeInfoFromIdentifier(leveldir_first,