mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix double free, null texture drop
This commit is contained in:
@@ -480,7 +480,8 @@ TextureSource::~TextureSource()
|
||||
driver->removeTexture(t);
|
||||
|
||||
//cleanup source image
|
||||
iter->atlas_img->drop();
|
||||
if (iter->atlas_img)
|
||||
iter->atlas_img->drop();
|
||||
}
|
||||
m_atlaspointer_cache.clear();
|
||||
|
||||
|
Reference in New Issue
Block a user