diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index c8572bc9ae..bb334d3057 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -4,6 +4,37 @@ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt. ________________________________________________________________________________ + +2015/02/27 +---------- +* [ActorFrame] Fixed RemoveChild and RemoveAllChildren lua functions to + delete the children instead of leaking memory. [kyzentun] + +2015/02/26 +---------- +* [PaneDisplay] Changed to print an error when metrics or player number are + omitted instead of crashing. [kyzentun] +* [Screen] Fixed crash when AddInputCallback is passed nil. [kyzentun] + +2015/02/22 +---------- +* [BitmapText] Place characters of right-to-left alphabets correctly. + (untested) [roothorick] + +================================================================================ +StepMania 5.0.6 | 20150217 +-------------------------------------------------------------------------------- + +2015/02/16 +---------- +* [EditMode] Fixed mistake in TimingData that broke editing bpms. [kyzentun] + Fixed crash when deleting steps. [kyzentun] +* [InputMapper] Backslash can be mapped now. [kyzentun] + +================================================================================ +StepMania 5.0.5 | 20150214 +-------------------------------------------------------------------------------- + 2015/02/12 ---------- * [InputMapper] Added D-Force Automappings [shakesoda] diff --git a/src/ActorFrame.cpp b/src/ActorFrame.cpp index 26591e1eb3..b54f223af9 100644 --- a/src/ActorFrame.cpp +++ b/src/ActorFrame.cpp @@ -721,14 +721,16 @@ public: static int RemoveChild( T* p, lua_State *L ) { - Actor *pChild = p->GetChild( SArg(1) ); - if( pChild ) - p->RemoveChild( pChild ); - else - lua_pushnil( L ); - return 1; + Actor *child = p->GetChild(SArg(1)); + if(child) + { + p->RemoveChild(child); + SAFE_DELETE(child); + } + COMMON_RETURN_SELF; } - static int RemoveAllChildren( T* p, lua_State *L ) { p->RemoveAllChildren( ); COMMON_RETURN_SELF; } + static int RemoveAllChildren( T* p, lua_State *L ) + { p->DeleteAllChildren(); COMMON_RETURN_SELF; } LunaActorFrame() {