mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix double free, null texture drop
This commit is contained in:
parent
7cd5eb4c77
commit
ce901f4c4c
2 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue