Started to fix texture memory leaks.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8392 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2011-04-20 13:44:34 +00:00
parent 23a2beda6a
commit a467633602

View File

@@ -267,6 +267,8 @@ void Material::install(bool is_full_path)
//-----------------------------------------------------------------------------
Material::~Material()
{
if(m_texture)
irr_driver->removeTexture(m_texture);
// If a special sfx is installed (that isn't part of stk itself), the
// entry needs to be removed from the sfx_manager's mapping, since other
// tracks might use the same name.