Core/Spells: Fix an issue with previous commit (a309ca97279)
Tools/mmaps: Fix a possible mem leak and a compile warning