mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +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_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; }
|
||||
LegoLODList* GetList() { return m_list; }
|
||||
|
Reference in New Issue
Block a user