mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Match MxPtrList<LegoNamedPart>::Destroy
(#1285)
This commit is contained in:

committed by
GitHub

parent
2d302ddf9b
commit
fd5f7ad620
@@ -12,7 +12,18 @@ public:
|
|||||||
m_name = p_name;
|
m_name = p_name;
|
||||||
m_list = p_list;
|
m_list = p_list;
|
||||||
}
|
}
|
||||||
~LegoNamedPart() { delete m_list; }
|
~LegoNamedPart()
|
||||||
|
{
|
||||||
|
LegoLODListCursor cursor(m_list);
|
||||||
|
LegoLOD* lod;
|
||||||
|
|
||||||
|
while (cursor.First(lod)) {
|
||||||
|
cursor.Detach();
|
||||||
|
delete lod;
|
||||||
|
}
|
||||||
|
|
||||||
|
delete m_list;
|
||||||
|
}
|
||||||
|
|
||||||
const MxString* GetName() const { return &m_name; }
|
const MxString* GetName() const { return &m_name; }
|
||||||
LegoLODList* GetList() { return m_list; }
|
LegoLODList* GetList() { return m_list; }
|
||||||
|
Reference in New Issue
Block a user