diff options
author | Tae-Young Chung <ty83.chung@samsung.com> | 2019-01-11 02:13:39 (GMT) |
---|---|---|
committer | Tae-Young Chung <ty83.chung@samsung.com> | 2019-01-11 02:13:39 (GMT) |
commit | 1825796edd46e234e4d6faaae6903e05071c6ff7 (patch) | |
tree | c769ca7108a581c17f6dd01bf342387037c51110 | |
parent | 588fb9803daa538a4d1c911fcd5e94185c30eb4e (diff) | |
download | mediavision-accepted/tizen_4.0_unified.zip mediavision-accepted/tizen_4.0_unified.tar.gz mediavision-accepted/tizen_4.0_unified.tar.bz2 |
Fix coverity CID-110444 Resource leaksubmit/tizen_4.0/20190111.021755accepted/tizen/4.0/unified/20190112.120442accepted/tizen_4.0_unifiedrefs/changes/83/197383/1
Change-Id: I0c075871292a8fdef11cfb2f35bd439c11403f91
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
-rw-r--r-- | mv_surveillance/surveillance/src/EventTriggerPersonRecognition.cpp | 6 | ||||
-rw-r--r-- | packaging/capi-media-vision.spec | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/mv_surveillance/surveillance/src/EventTriggerPersonRecognition.cpp b/mv_surveillance/surveillance/src/EventTriggerPersonRecognition.cpp index 5dd9d09..8c9c31f 100644 --- a/mv_surveillance/surveillance/src/EventTriggerPersonRecognition.cpp +++ b/mv_surveillance/surveillance/src/EventTriggerPersonRecognition.cpp @@ -163,6 +163,12 @@ int EventTriggerPersonRecognition::parseEngineConfig(mv_engine_config_h engineCo modelPath = NULL; } + const int err = mv_face_recognition_model_destroy(recognitionModel); + if (MEDIA_VISION_ERROR_NONE != err) { + LOGE("Error while trying to delete face recognition model." + "Error code: %i.", err); + } + return error; } diff --git a/packaging/capi-media-vision.spec b/packaging/capi-media-vision.spec index f729b5b..e4c452a 100644 --- a/packaging/capi-media-vision.spec +++ b/packaging/capi-media-vision.spec @@ -1,7 +1,7 @@ Name: capi-media-vision Summary: Media Vision library for Tizen Native API -Version: 0.3.27 -Release: 5 +Version: 0.3.28 +Release: 6 Group: Multimedia/Framework License: Apache-2.0 and BSD-3-Clause Source0: %{name}-%{version}.tar.gz |