From: Inki Dae Date: Tue, 4 Feb 2025 04:36:38 +0000 (+0900) Subject: auto_zoom: fix coverity issue X-Git-Tag: accepted/tizen/unified/20250210.160201^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fcore%2Fapi%2Fsingleo.git auto_zoom: fix coverity issue Fix coverity issue, CID-1835643. Change-Id: Id80f2a6a2c8e6da2fcdb6af1ac799dbb5b3547fa Signed-off-by: Inki Dae --- diff --git a/services/auto_zoom/src/AutoZoom.cpp b/services/auto_zoom/src/AutoZoom.cpp index b190eb2..bcd49a6 100644 --- a/services/auto_zoom/src/AutoZoom.cpp +++ b/services/auto_zoom/src/AutoZoom.cpp @@ -170,8 +170,17 @@ void AutoZoom::configure(InputConfigBase &config) AutoZoom::~AutoZoom() { if (_async_mode) { - _input_service->streamOff(); - _async_manager->destroy(); + try { + _input_service->streamOff(); + } catch (const system_error &e) { + SINGLEO_LOGE("Failed to stop streaming: %s", e.what()); + } + + try { + _async_manager->destroy(); + } catch (const system_error &e) { + SINGLEO_LOGE("Failed to destroy async manager: %s", e.what()); + } } try {