1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 14:55:13 -05:00

Fix double free, null texture drop

This commit is contained in:
kwolekr 2013-04-12 17:20:05 -04:00
parent 7cd5eb4c77
commit ce901f4c4c
2 changed files with 2 additions and 4 deletions

View File

@ -97,9 +97,6 @@ EmergeManager::~EmergeManager() {
delete mapgen[i]; delete mapgen[i];
} }
emergethread.clear(); emergethread.clear();
for (unsigned int i = 0; i < mapgen.size(); i++)
delete mapgen[i];
mapgen.clear(); mapgen.clear();
for (unsigned int i = 0; i < ores.size(); i++) for (unsigned int i = 0; i < ores.size(); i++)

View File

@ -480,6 +480,7 @@ TextureSource::~TextureSource()
driver->removeTexture(t); driver->removeTexture(t);
//cleanup source image //cleanup source image
if (iter->atlas_img)
iter->atlas_img->drop(); iter->atlas_img->drop();
} }
m_atlaspointer_cache.clear(); m_atlaspointer_cache.clear();