mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-29 20:25:19 +01: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