mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
wg_engine: fix a memory violation by a mistake
regresion by ac08a9d6e7
issue: https://github.com/thorvg/thorvg/issues/3241
This commit is contained in:
parent
457c44c922
commit
65306d9b66
1 changed files with 2 additions and 1 deletions
|
@ -77,6 +77,7 @@ WgGeometryBufferPool* WgGeometryBufferPool::instance()
|
|||
|
||||
WgGeometryBufferPool::~WgGeometryBufferPool()
|
||||
{
|
||||
ARRAY_FOREACH(p, vbuffers) delete(*p);
|
||||
//The indexed buffer may contain the vertex buffer, so free the memory in reverse order.
|
||||
ARRAY_FOREACH(p, ibuffers) delete(*p);
|
||||
ARRAY_FOREACH(p, vbuffers) delete(*p);
|
||||
}
|
Loading…
Add table
Reference in a new issue