Small fix for a progressbar

This commit is contained in:
inmarket 2015-01-03 18:44:48 +10:00
parent 5a4e0b7b4d
commit 28d9da556a

View file

@ -27,6 +27,7 @@ static void ResetDisplayPos(GProgressbarObject *gsw) {
// We have to deinitialize the timer which auto updates the progressbar if any // We have to deinitialize the timer which auto updates the progressbar if any
static void _destroy(GHandle gh) { static void _destroy(GHandle gh) {
#if GWIN_PROGRESSBAR_AUTO #if GWIN_PROGRESSBAR_AUTO
gtimerStop(&((GProgressbarObject *)gh)->gt);
gtimerDeinit(&((GProgressbarObject *)gh)->gt); gtimerDeinit(&((GProgressbarObject *)gh)->gt);
#endif #endif