diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index 2b62f91f4..df23a8da1 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -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(); } // ----------------------------------------------------------------------------