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:
parent
b5af4a6b0b
commit
75209cb1ce
@ -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();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user