From 28d9da556a5c892c09412a03bf7f0177c72f1ab1 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 3 Jan 2015 18:44:48 +1000 Subject: [PATCH] Small fix for a progressbar --- src/gwin/gwin_progressbar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gwin/gwin_progressbar.c b/src/gwin/gwin_progressbar.c index d5b8721a..db58f9a7 100644 --- a/src/gwin/gwin_progressbar.c +++ b/src/gwin/gwin_progressbar.c @@ -27,7 +27,8 @@ static void ResetDisplayPos(GProgressbarObject *gsw) { // We have to deinitialize the timer which auto updates the progressbar if any static void _destroy(GHandle gh) { #if GWIN_PROGRESSBAR_AUTO - gtimerDeinit( &((GProgressbarObject *)gh)->gt ); + gtimerStop(&((GProgressbarObject *)gh)->gt); + gtimerDeinit(&((GProgressbarObject *)gh)->gt); #endif _gwidgetDestroy(gh);