[Commits] [wesnoth/wesnoth] cb7ff9: Implement a destructor subscription system for for...

GitHub noreply at github.com
Tue Apr 4 20:20:10 UTC 2017


  Branch: refs/heads/wfl_memleak_fix_attempt
  Home:   https://github.com/wesnoth/wesnoth
  Commit: cb7ff94ce291a593291b14d2716ca46b4384cdff
      https://github.com/wesnoth/wesnoth/commit/cb7ff94ce291a593291b14d2716ca46b4384cdff
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-04 (Tue, 04 Apr 2017)

  Changed paths:
    M src/ai/composite/value_translator.hpp
    M src/ai/default/attack.cpp
    M src/ai/formula/ai.cpp
    M src/ai/formula/ai.hpp
    M src/ai/formula/callable_objects.cpp
    M src/ai/formula/callable_objects.hpp
    M src/ai/formula/candidates.cpp
    M src/ai/formula/function_table.cpp
    M src/ai/formula/stage_side_formulas.cpp
    M src/ai/formula/stage_unit_formulas.cpp
    M src/formula/callable.hpp
    M src/formula/callable_fwd.hpp
    M src/formula/callable_objects.cpp
    M src/formula/callable_objects.hpp
    M src/formula/function.cpp
    M src/formula/variant.cpp
    M src/formula/variant.hpp
    M src/formula/variant_value.cpp
    M src/formula/variant_value.hpp
    M src/scripting/lua_formula_bridge.cpp
    M src/units/filter.cpp

  Log Message:
  -----------
  Implement a destructor subscription system for formula_callable

This allows the variant_callable to store a shared_ptr to its callable while ensuring that
callables that were allocated on the stack or as part of a larger structure are not
double-freed.





More information about the Commits mailing list