[Commits] [wesnoth/wesnoth] abc64e: Fix crash by reintroduce splice.
GitHub
noreply at github.com
Thu Jul 28 12:20:12 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: abc64e62c865b708e6fde628aaa51f74a03577e0
https://github.com/wesnoth/wesnoth/commit/abc64e62c865b708e6fde628aaa51f74a03577e0
Author: Andreas Löf <andreas at alternating.net>
Date: 2016-07-29 (Fri, 29 Jul 2016)
Changed paths:
M src/events.cpp
Log Message:
-----------
Fix crash by reintroduce splice.
This fixes a crash that would be caused by memory incorrectly being freed
when removed from a list. Relying on splice stops that from happening.
This also fixes an exit condition when deleting handlers as depth could
sometimes not be decremented.
Finally, checks are made to made sure that an sdl_handler is either
exclusively in the global context or a different context, ensuring
that they cannot be in both.
More information about the Commits
mailing list