From: Inki Dae Date: Mon, 23 Sep 2024 02:58:49 +0000 (+0900) Subject: backends/mediavision: do not throw at dtor X-Git-Tag: accepted/tizen/unified/20240930.043749~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c282a582b31a2d6f3cda743cdfc41e7062f0a069;p=platform%2Fcore%2Fapi%2Fsingleo.git backends/mediavision: do not throw at dtor Change-Id: I25ea8eb5dc9859914ac5e93aa6b0f0d022d51a8f Signed-off-by: Inki Dae --- diff --git a/inference/backends/mediavision/src/MvFaceDetection.cpp b/inference/backends/mediavision/src/MvFaceDetection.cpp index 75dd7b6..174f75e 100644 --- a/inference/backends/mediavision/src/MvFaceDetection.cpp +++ b/inference/backends/mediavision/src/MvFaceDetection.cpp @@ -41,7 +41,6 @@ MvFaceDetection::~MvFaceDetection() SINGLEO_LOGE("Fail to destroy face detection handle.(%d)", ret); } catch (const runtime_error &e) { SINGLEO_LOGE("Failed to destroy face detection handle: %s", e.what()); - throw runtime_error("Failed to destroy face detection handle."); } } diff --git a/inference/backends/mediavision/src/MvFaceLandmark.cpp b/inference/backends/mediavision/src/MvFaceLandmark.cpp index 90906d5..d09c5b6 100644 --- a/inference/backends/mediavision/src/MvFaceLandmark.cpp +++ b/inference/backends/mediavision/src/MvFaceLandmark.cpp @@ -41,7 +41,6 @@ MvFaceLandmark::~MvFaceLandmark() SINGLEO_LOGE("Fail to destroy facial landmark handle.(%d)", ret); } catch (const std::runtime_error &e) { SINGLEO_LOGE("Failed to destroy facial landmark handle: %s", e.what()); - throw runtime_error("Failed to destroy facial landmark handle."); } } diff --git a/inference/backends/mediavision/src/MvFaceRecognition.cpp b/inference/backends/mediavision/src/MvFaceRecognition.cpp index d5d1e46..0b26b66 100644 --- a/inference/backends/mediavision/src/MvFaceRecognition.cpp +++ b/inference/backends/mediavision/src/MvFaceRecognition.cpp @@ -41,7 +41,6 @@ MvFaceRecognition::~MvFaceRecognition() SINGLEO_LOGE("Fail to destroy face recognition handle.(%d)", ret); } catch (const std::runtime_error &e) { SINGLEO_LOGE("Failed to destroy face recognition handle: %s", e.what()); - throw runtime_error("Failed to destroy face recognition handle."); } } diff --git a/inference/backends/mediavision/src/MvImageClassification.cpp b/inference/backends/mediavision/src/MvImageClassification.cpp index a8657a4..7e7e6c6 100644 --- a/inference/backends/mediavision/src/MvImageClassification.cpp +++ b/inference/backends/mediavision/src/MvImageClassification.cpp @@ -41,7 +41,6 @@ MvImageClassification::~MvImageClassification() SINGLEO_LOGE("Fail to destroy image classification handle.(%d)", ret); } catch (const std::runtime_error &e) { SINGLEO_LOGE("Failed to destroy image classification handle: %s", e.what()); - throw runtime_error("Failed to destroy image classification handle."); } } diff --git a/inference/backends/mediavision/src/MvObjectDetection.cpp b/inference/backends/mediavision/src/MvObjectDetection.cpp index 88fb8b8..a23f3e5 100644 --- a/inference/backends/mediavision/src/MvObjectDetection.cpp +++ b/inference/backends/mediavision/src/MvObjectDetection.cpp @@ -41,7 +41,6 @@ MvObjectDetection::~MvObjectDetection() SINGLEO_LOGE("Fail to destroy object detection handle.(%d)", ret); } catch (const std::runtime_error &e) { SINGLEO_LOGE("Failed to destroy object detection handle: %s", e.what()); - throw runtime_error("Failed to destroy object detection handle."); } }