hardware: samsung_slsi: libcamera2: Fix crash on back/front change
authorSungjoong Kang <sj3.kang@samsung.com>
Tue, 28 Aug 2012 10:48:30 +0000 (03:48 -0700)
committerRebecca Schultz Zavin <rebecca@android.com>
Wed, 29 Aug 2012 00:26:55 +0000 (17:26 -0700)
Fixed crash on camera back/front mode change.

Change-Id: Iae5f2a01fe4f1ccf2a7d32f92d212c05f8c2e830
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
libcamera2/ExynosCameraHWInterface2.cpp

index dae0468a20da34a976966e215a7d0dcbfe257540..b5c6a8a3454be0e2a31fbfecff5c8192579233c1 100644 (file)
@@ -4478,15 +4478,6 @@ static int HAL2_camera_device_close(struct hw_device_t* device)
         free(cam_device);
         g_camera_vaild = false;
     }
-    if (g_camera2[0] != NULL) {
-        delete static_cast<ExynosCamera2 *>(g_camera2[0]);
-        g_camera2[0] = NULL;
-    }
-
-    if (g_camera2[1] != NULL) {
-        delete static_cast<ExynosCamera2 *>(g_camera2[1]);
-        g_camera2[1] = NULL;
-    }
 
     ALOGV("%s: EXIT", __FUNCTION__);
     return 0;