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);