[Commits] [wesnoth/wesnoth] 6fc1ac: fixup wml menu items: track the lifetime of the ma...

GitHub noreply at github.com
Wed Dec 24 07:08:44 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 6fc1ac1bb224cddec5ccbb7f7865b69b1b093a01
      https://github.com/wesnoth/wesnoth/commit/6fc1ac1bb224cddec5ccbb7f7865b69b1b093a01
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-12-24 (Wed, 24 Dec 2014)

  Changed paths:
    M src/game_events/manager.cpp
    M src/game_events/manager.hpp
    M src/game_events/menu_item.cpp
    M src/game_events/menu_item.hpp
    M src/game_events/wmi_container.cpp
    M src/game_events/wmi_container.hpp

  Log Message:
  -----------
  fixup wml menu items: track the lifetime of the manager

testing revealed that assertions may fail regarding the lifetime
of the manager of wml menu items in some cases. this commit adds
a pointer to each which tracks its manager's life time and prevents
dangling pointers.





More information about the Commits mailing list