Fix Svace issue - "new_handle" is compared to NULL after dereferenced 21/87221/1 accepted/tizen/common/20160907.154724 accepted/tizen/ivi/20160908.044225 accepted/tizen/mobile/20160908.043806 accepted/tizen/tv/20160908.044000 accepted/tizen/wearable/20160908.044113 submit/tizen/20160907.074000
authorJeongmo Yang <jm80.yang@samsung.com>
Wed, 7 Sep 2016 05:44:59 +0000 (14:44 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 7 Sep 2016 05:46:33 +0000 (14:46 +0900)
[Version] 0.2.48
[Profile] Common
[Issue Type] Svace
[Dependency module] N/A
[Dependency commit] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20160906.1]

Change-Id: I88afa599f817715067f15a609529f43fe6063644
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
legacy/src/legacy_camera.c
packaging/mmsvc-camera.spec

index d0e356a..cd05235 100644 (file)
@@ -725,10 +725,8 @@ int legacy_camera_change_device(camera_h *camera, camera_device_e device)
        return CAMERA_ERROR_NONE;
 
 _CHANGE_DEVICE_FAILED:
-       if (new_handle) {
-               legacy_camera_destroy((camera_h)new_handle);
-               new_handle = NULL;
-       }
+       legacy_camera_destroy((camera_h)new_handle);
+       new_handle = NULL;
 
        if (reuse_element) {
                mm_camcorder_set_attributes(old_handle->mm_handle, NULL,
index 049df3b..2c0faa3 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-camera
 Summary:    A Camera module for muse server
-Version:    0.2.47
+Version:    0.2.48
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0