diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-08-31 17:08:58 -0700 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-08-31 17:18:38 -0700 |
commit | 8d7a59c362e0d30729b5803357cdf88db44ff04e (patch) | |
tree | 696c5618c28d5f4e68910604a75f5d939b432c63 /services/camera/libcameraservice/CameraService.cpp | |
parent | 7a9f6faa3c1a058d27548a329df464f2eaf1f7d1 (diff) | |
download | frameworks_base-8d7a59c362e0d30729b5803357cdf88db44ff04e.zip frameworks_base-8d7a59c362e0d30729b5803357cdf88db44ff04e.tar.gz frameworks_base-8d7a59c362e0d30729b5803357cdf88db44ff04e.tar.bz2 |
Remove setPreviewDisplay in CameraService::Client::~Client().
mSurface is released in destructor and setPreviewWindow(0) is
called in Client::disconnect(). setPreviewDisplay is not needed
in destructor.
bug:2964479
Change-Id: I329901659a2af407816c34e02f37143b28183a89
Diffstat (limited to 'services/camera/libcameraservice/CameraService.cpp')
-rw-r--r-- | services/camera/libcameraservice/CameraService.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/services/camera/libcameraservice/CameraService.cpp b/services/camera/libcameraservice/CameraService.cpp index c6a9909..d1fbf17 100644 --- a/services/camera/libcameraservice/CameraService.cpp +++ b/services/camera/libcameraservice/CameraService.cpp @@ -336,11 +336,6 @@ CameraService::Client::~Client() { int callingPid = getCallingPid(); LOG1("Client::~Client E (pid %d, this %p)", callingPid, this); - // Clean up the ANativeWindow - if (mSurface != 0) { - setPreviewDisplay(0); - } - // set mClientPid to let disconnet() tear down the hardware mClientPid = callingPid; disconnect(); |