Fixed a potential memory leak in SpriteManager::Initialize()