don't deref desc after deleting it!

This commit is contained in:
asvitkine 2011-12-28 18:14:58 +00:00
parent c2c88efcc3
commit eebe0b0c13

View File

@ -324,7 +324,7 @@ void TimerReset(void)
while (desc) { while (desc) {
TMDesc *next = desc->next; TMDesc *next = desc->next;
delete desc; delete desc;
desc = desc->next; desc = next;
} }
tmDescList = NULL; tmDescList = NULL;
} }