diff --git a/src/graphics/material_manager.cpp b/src/graphics/material_manager.cpp index aa9b7b258..6a3aab870 100644 --- a/src/graphics/material_manager.cpp +++ b/src/graphics/material_manager.cpp @@ -41,6 +41,18 @@ MaterialManager::MaterialManager() // be moved into a separate function. } +//----------------------------------------------------------------------------- +/** Frees all allocated data structures. + */ +MaterialManager::~MaterialManager() +{ + for(unsigned int i=0; i m_materials; public: - MaterialManager(); + MaterialManager(); + ~MaterialManager(); void loadMaterial (); void reInit (); void setAllMaterialFlags(video::ITexture* t,