[Commits] [wesnoth/wesnoth] 756320: Add a destructor to the context class.

GitHub noreply at github.com
Sun Jul 17 03:15:32 UTC 2016


  Branch: refs/heads/Vultraz-event_handling_fixes
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 75632003efef78b1d2fe9f47c6a7e4dabc47de22
      https://github.com/wesnoth/wesnoth/commit/75632003efef78b1d2fe9f47c6a7e4dabc47de22
  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
    M src/preferences.cpp

  Log Message:
  -----------
  Add a destructor to the context class.

This adds a destructor to the context class to ensure that any joined
event_handlers leave the context before it is deallocated.
It also changes the preferences to explicitly leave the global event
context as it is destroyed instead of when the event handler is
destroyed during _exit().
Also replace std::list.splice with push_back and erase(iterator) in
an attempt to avoid compile errors on older versions of gcc.





More information about the Commits mailing list