From 623c1066bda5ceb6fa0cbdefdef39dbc780e466e Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 12 Oct 2010 10:21:17 -0300 Subject: [PATCH] Avoid asserting leak of GfxObjs when MEMLEAK is defined. --- src/raster/gfxobj.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/raster/gfxobj.cpp b/src/raster/gfxobj.cpp index 8fdab1576..d71150eb9 100644 --- a/src/raster/gfxobj.cpp +++ b/src/raster/gfxobj.cpp @@ -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);