[ai-0.36-79] memory leak fix
DB/Quest: On Ruby Wings

By @Killyana based on original work by @Nevadas, 

Closes #9683
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into trinity-wotlk-ai
更新
Merge branch 'trinity-wotlk-ai' of https://github.com/ike3/mangosbot into ghbb