aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin_progressbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gwin/gwin_progressbar.c')
-rw-r--r--src/gwin/gwin_progressbar.c3
1 files changed, 2 insertions, 1 deletions
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);