Commit f1ee66d8 authored by nadro's avatar nadro

- Fixed memory leak in CD3D9Texture. Thanks CuteAlien for report that and provide a patch.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5265 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e517481f
......@@ -102,6 +102,11 @@ CD3D9Texture::CD3D9Texture(const io::path& name, const core::array<IImage*>& ima
{
os::Printer::log("Could not create DIRECT3D9 Texture.", ELL_WARNING);
}
for (u32 i = 0; i < tmpImage.size(); ++i)
{
tmpImage[i]->drop();
}
}
CD3D9Texture::CD3D9Texture(CD3D9Driver* driver, const core::dimension2d<u32>& size, const io::path& name, const ECOLOR_FORMAT format)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment