- fixed creation and deletion of stack and layers

git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@652 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-11-10 16:36:29 +00:00
parent 5e99b59fd2
commit d99a28bbd1
2 changed files with 16 additions and 7 deletions
+9 -1
View File
@@ -28,7 +28,15 @@ Stack::Stack(const Stack& orig)
}
Stack::~Stack()
{ }
{
Layer *pLayer = m_pLayers;
while(pLayer)
{
Layer *pNextLayer = pLayer->next;
delete pLayer;
pLayer = pNextLayer;
}
}
size_t Stack::numLayers()
{