[Commits] [wesnoth/wesnoth] 501eb6: Fix crash in context destructor

GitHub noreply at github.com
Sun Jul 17 10:07:14 UTC 2016


  Branch: refs/heads/Vultraz-event_handling_fixes
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 501eb6074391f87bdfe5d670ef77450465e15499
      https://github.com/wesnoth/wesnoth/commit/501eb6074391f87bdfe5d670ef77450465e15499
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2016-07-17 (Sun, 17 Jul 2016)

  Changed paths:
    M src/events.cpp
    M src/events.hpp

  Log Message:
  -----------
  Fix crash in context destructor

This fixes a crash that was seen when the context destructor was calling
either leave or leave_global while iterating over the list. The current iterator
handle would be invalidated and further calls to it would return invalid values.





More information about the Commits mailing list