[saco] Implement/match CLabelPool destructor

This commit is contained in:
RD42 2024-10-21 22:24:20 +08:00
parent 61936ebf93
commit 5048ebb8bf
2 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,17 @@ CLabelPool::CLabelPool()
}
}
CLabelPool::~CLabelPool()
{
for(WORD wLabelID = 0; wLabelID < MAX_LABELS; wLabelID++)
{
if(m_bLabelSlotState[wLabelID])
{
Delete(wLabelID);
}
}
}
BOOL CLabelPool::Delete(WORD wLabelID)
{
if(wLabelID >= MAX_LABELS) return FALSE;

View File

@ -14,6 +14,7 @@ private:
BOOL m_bLabelSlotState[MAX_LABELS];
public:
CLabelPool();
~CLabelPool();
BOOL Delete(WORD wLabelID);