diff options
author | Simon Howard | 2015-04-26 18:55:43 -0400 |
---|---|---|
committer | Simon Howard | 2015-04-26 18:55:43 -0400 |
commit | 1bcff874c52aca3134cee636178ab5d6272fef58 (patch) | |
tree | bc43085ef719d5c8fc9633e029e969bc33860abc /textscreen/examples/guitest.c | |
parent | a915b13e0d0c612c12b8f54132ffa3189375dde5 (diff) | |
download | chocolate-doom-1bcff874c52aca3134cee636178ab5d6272fef58.tar.gz chocolate-doom-1bcff874c52aca3134cee636178ab5d6272fef58.tar.bz2 chocolate-doom-1bcff874c52aca3134cee636178ab5d6272fef58.zip |
Don't read currentthinker->next after Z_Free().
Save the next pointer in the P_RunThinkers() loop when iterating through
thinkers, so that if the current thinker is freed we can still advance
to the next thinker without dereferencing freed memory.
Diffstat (limited to 'textscreen/examples/guitest.c')
0 files changed, 0 insertions, 0 deletions