summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--afb-timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/afb-timer.c b/afb-timer.c
index b302278..4afdb0e 100644
--- a/afb-timer.c
+++ b/afb-timer.c
@@ -61,8 +61,8 @@ static int TimerNext (sd_event_source* source, uint64_t timer, void* handle) {
}
void TimerEvtStop(TimerHandleT *timerHandle) {
-
sd_event_source_unref(timerHandle->evtSource);
+ if (timerHandle->freeCB) timerHandle->freeCB(timerHandle->context);
free (timerHandle);
}