1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-16 10:08:36 +03:00

0028034: Application Framework - stack overflow in LDOM destructor

This commit is contained in:
pdn 2016-11-01 13:43:56 +03:00 committed by apn
parent f73c584ceb
commit 579f2938a8

View File

@ -99,7 +99,14 @@ void * LDOM_MemManager::MemBlock::AllocateAndCheck
LDOM_MemManager::MemBlock::~MemBlock () LDOM_MemManager::MemBlock::~MemBlock ()
{ {
delete [] myBlock; delete [] myBlock;
delete myNext; MemBlock* aNext = myNext;
while (aNext)
{
MemBlock* aNextNext = aNext->myNext;
aNext->myNext = 0;
delete aNext;
aNext = aNextNext;
}
} }
//======================================================================= //=======================================================================