CID-110342 Resource leak
Change-Id: If8c0ea85c19f4bc251e798e6fb11eedb417144b7
Signed-off-by: sangho park <sangho.g.park@samsung.com>
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
-Version: 0.3.29
+Version: 0.3.30
Release: 1
Group: Multimedia/Framework
License: Apache-2.0 and BSD-3-Clause
error = mv_surveillance_push_source(source, video_stream_id);
if (MEDIA_VISION_ERROR_NONE != error) {
PRINT_E("Errors were occurred during source pushing, code %i", error);
+ int error2 = mv_destroy_source(source);
+ if (MEDIA_VISION_ERROR_NONE != error2) {
+ PRINT_E("Errors were occurred during source destroying, code %i", error2);
+ }
return;
}