diff --git a/src/items/powerup_manager.cpp b/src/items/powerup_manager.cpp index aa83e0a7d..14e7faec1 100644 --- a/src/items/powerup_manager.cpp +++ b/src/items/powerup_manager.cpp @@ -120,6 +120,8 @@ void PowerupManager::loadAllPowerups() loadWeights(*root, "last" , POSITION_LAST ); loadWeights(*root, "battle" , POSITION_BATTLE_MODE); + delete root; + } // loadAllPowerups //-----------------------------------------------------------------------------