mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-18 01:12:04 +00:00
Avoid asserting leak of GfxObjs when MEMLEAK is defined.
This commit is contained in:
parent
f3fcc8fd3e
commit
623c1066bd
@ -41,7 +41,10 @@ RasterModule::RasterModule()
|
||||
|
||||
RasterModule::~RasterModule()
|
||||
{
|
||||
#ifndef MEMLEAK
|
||||
ASSERT(objects_map->empty());
|
||||
#endif
|
||||
|
||||
delete objects_map;
|
||||
delete objects_mutex;
|
||||
}
|
||||
@ -101,7 +104,6 @@ GfxObj* GfxObj::find(GfxObjId id)
|
||||
return ret;
|
||||
}
|
||||
|
||||
// static
|
||||
void GfxObj::_setGfxObjId(GfxObjId id)
|
||||
{
|
||||
ASSERT(find(m_id) == this);
|
||||
|
Loading…
Reference in New Issue
Block a user