aboutsummaryrefslogtreecommitdiff
path: root/samegame.c
diff options
context:
space:
mode:
authorAsher Gordon <AsDaGo@posteo.net>2023-07-29 15:27:46 -0400
committerSimon Tatham <anakin@pobox.com>2023-07-29 22:09:52 +0100
commit3e7a6adce5887db04d26438da64fdc4de308f4da (patch)
tree01e70bec252b016f8f68caac606d0263117dfa56 /samegame.c
parent9e4e15fda22e0ed8e5c6ea671f17bd76ead0d317 (diff)
downloadpuzzles-3e7a6adce5887db04d26438da64fdc4de308f4da.zip
puzzles-3e7a6adce5887db04d26438da64fdc4de308f4da.tar.gz
puzzles-3e7a6adce5887db04d26438da64fdc4de308f4da.tar.bz2
puzzles-3e7a6adce5887db04d26438da64fdc4de308f4da.tar.xz
midend_get_prefs: Don't free memory that we just copied elsewhere.
We were using free_cfg(be_prefs) after we copied be_prefs to all_prefs, but we actually want to use sfree(be_prefs) since we don't want to free each element that has been copied. None of the games so far use string preferences, which is why they haven't been affected by this bug.
Diffstat (limited to 'samegame.c')
0 files changed, 0 insertions, 0 deletions