Robustify the SGTimerQueue destructor. There have been reports of

crashes on deletion.
This commit is contained in:
andy
2004-05-03 18:43:53 +00:00
parent de1a5f3034
commit e09164e5b3

View File

@@ -59,7 +59,14 @@ SGTimerQueue::SGTimerQueue(int size)
SGTimerQueue::~SGTimerQueue()
{
for(int i=0; i<_numEntries; i++) {
delete _table[i].timer;
_table[i].timer = 0;
}
_numEntries = 0;
delete[] _table;
_table = 0;
_tableSize = 0;
}
void SGTimerQueue::update(double deltaSecs)