Fixed minor memory leak

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8370 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-04-17 23:32:17 +00:00
parent b5af4a6b0b
commit 75209cb1ce

View File

@ -903,6 +903,8 @@ ITexture* IrrDriver::applyMask(video::ITexture* texture, const std::string& mask
}
return m_scene_manager->getVideoDriver()->addTexture(texture->getName().getPath().c_str(), img, NULL);
img->drop();
mask->drop();
}
// ----------------------------------------------------------------------------