backends/mediavision: do not throw at dtor
authorInki Dae <inki.dae@samsung.com>
Mon, 23 Sep 2024 02:58:49 +0000 (11:58 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 27 Sep 2024 04:58:54 +0000 (13:58 +0900)
Change-Id: I25ea8eb5dc9859914ac5e93aa6b0f0d022d51a8f
Signed-off-by: Inki Dae <inki.dae@samsung.com>
inference/backends/mediavision/src/MvFaceDetection.cpp
inference/backends/mediavision/src/MvFaceLandmark.cpp
inference/backends/mediavision/src/MvFaceRecognition.cpp
inference/backends/mediavision/src/MvImageClassification.cpp
inference/backends/mediavision/src/MvObjectDetection.cpp

index 75dd7b6cfc0db353e0f1ec47f77cf1771fffadf7..174f75ecd4185fa7533f86cad5fb10746a3bb2be 100644 (file)
@@ -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.");
        }
 }
 
index 90906d59af8e9eb8e5d60c15e2e1b4d807770acb..d09c5b6460ed905b92e398e42046e6e01c1452a0 100644 (file)
@@ -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.");
        }
 }
 
index d5d1e46662675e52ded24b8ab7e4ff696c6da669..0b26b66741eaa7006596fbf56715f04461d6aea0 100644 (file)
@@ -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.");
        }
 }
 
index a8657a4fe3740d4d0e98b904240819921798d0c6..7e7e6c6e86c3b9a922e87fcffe5a604bdd22d3e0 100644 (file)
@@ -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.");
        }
 }
 
index 88fb8b89dfbc9af712382f2fdbee83f304559086..a23f3e5df7942c25c965f947c849888cc7370e09 100644 (file)
@@ -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.");
        }
 }