From 64d8c8e5b00cd3c31735a4c5561c7a6ba195aa60 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 25 May 2023 16:00:11 -0400 Subject: [PATCH] cwIo.cpp : Added missing destroy(p->cbMutexH) in _free(). Call ui::flushCache() in exec(). --- cwIo.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cwIo.cpp b/cwIo.cpp index e0977eb..97eefd2 100644 --- a/cwIo.cpp +++ b/cwIo.cpp @@ -2146,6 +2146,8 @@ namespace cw mem::release(p->timerA); p->timerN = 0; + destroy(p->cbMutexH); + _serialPortDestroy(p); _audioDestroy(p); @@ -2345,9 +2347,12 @@ cw::rc_t cw::io::exec( handle_t h, void* execCbArg ) rc_t rc = kOkRC; io_t* p = _handleToPtr(h); - if( p->wsUiH.isValid() ) + if( p->wsUiH.isValid() ) + { + ui::flushCache( ui::ws::uiHandle( p->wsUiH )); rc = ui::ws::exec( p->wsUiH ); - + } + time::get(p->t0); if( p->audioMeterDevEnabledN )