summaryrefslogtreecommitdiff
path: root/src/common/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/timer.c')
-rw-r--r--src/common/timer.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/common/timer.c b/src/common/timer.c
index 90b4e901e..954582134 100644
--- a/src/common/timer.c
+++ b/src/common/timer.c
@@ -292,7 +292,17 @@ int do_timer(unsigned int tick) {
}
void timer_final() {
- //FREE(timer_data);
- aFree(timer_data);
+ struct timer_func_list* tfl = tfl_root, *tfl2;
+
+ while (tfl) {
+ tfl2 = tfl;
+ aFree(tfl->name);
+ aFree(tfl);
+ tfl = tfl2->next;
+ }
+
+ if (timer_data) aFree(timer_data);
+ if (timer_heap) aFree(timer_heap);
+ if (free_timer_list) aFree(free_timer_list);
}