mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 12:32:52 +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()
|
RasterModule::~RasterModule()
|
||||||
{
|
{
|
||||||
|
#ifndef MEMLEAK
|
||||||
ASSERT(objects_map->empty());
|
ASSERT(objects_map->empty());
|
||||||
|
#endif
|
||||||
|
|
||||||
delete objects_map;
|
delete objects_map;
|
||||||
delete objects_mutex;
|
delete objects_mutex;
|
||||||
}
|
}
|
||||||
@ -101,7 +104,6 @@ GfxObj* GfxObj::find(GfxObjId id)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
|
||||||
void GfxObj::_setGfxObjId(GfxObjId id)
|
void GfxObj::_setGfxObjId(GfxObjId id)
|
||||||
{
|
{
|
||||||
ASSERT(find(m_id) == this);
|
ASSERT(find(m_id) == this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user