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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/timer.c b/src/common/timer.c
index 4c602b51e..8b52811b8 100644
--- a/src/common/timer.c
+++ b/src/common/timer.c
@@ -262,7 +262,7 @@ int add_timer(unsigned int tick,int (*func)(int,unsigned int,int,int),int id,int
int j;
if (timer_data_max == 0) {
timer_data_max = 256;
- CREATE(timer_data, struct TimerData, timer_data_max);
+ CREATE_A(timer_data, struct TimerData, timer_data_max);
//timer_data[0] = NULL;
} else {
timer_data_max += 256;
@@ -403,13 +403,13 @@ void timer_final(void)
for(tfl = tfl_root; tfl; tfl = tfl_next)
{
tfl_next = tfl->next;
- free(tfl);
+ aFree(tfl);
tfl = NULL;
}
if(timer_heap)
- free(timer_heap);
+ aFree(timer_heap);
if(free_timer_list)
- free(free_timer_list);
+ aFree(free_timer_list);
if(timer_data)
- free(timer_data);
+ aFree(timer_data);
}