Change-Id: I59ae33f87e76a85769013ff7c92b200b447e0073
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
const std::set<int>& learnedLabels = pRecModel->getFaceLabels();
*number_of_labels = learnedLabels.size();
- (*labels) = new int[*number_of_labels];
+ (*labels) = (int*)malloc(sizeof(int) * (*number_of_labels));
std::set<int>::const_iterator it = learnedLabels.begin();
int i = 0;
&maskBuffer);
if (error != MEDIA_VISION_ERROR_NONE || maskBuffer == NULL) {
- if (maskBuffer != NULL)
- delete maskBuffer;
+ if (maskBuffer != NULL) {
+ free(maskBuffer);
+ maskBuffer = NULL;
+ }
LOGE("Getting mask buffer failed.");
return error;
imageWidth,
image);
- delete maskBuffer;
+ free(maskBuffer);
+ maskBuffer = NULL;
if (error != MEDIA_VISION_ERROR_NONE) {
LOGE("Applying mask buffer failed.");
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
-Version: 0.3.4
+Version: 0.3.5
Release: 0
Group: Multimedia/Framework
License: Apache-2.0 and BSD-2.0