commit | e1c8063521b0645b091b080d896106b2e6fd8670 | [log] [tgz] |
---|---|---|
author | Yin-Chia Yeh <yinchiayeh@google.com> | Mon Aug 08 14:48:05 2016 -0700 |
committer | Yin-Chia Yeh <yinchiayeh@google.com> | Mon Aug 08 14:48:05 2016 -0700 |
tree | c654bdea51c62cd6b15df075604fd44bfc805521 | |
parent | cd05b9a27a35fcf840de2554bd35f279bddf597d [diff] [blame] |
Camera: use wp for NotificationListener Bug: 30737827 Change-Id: I01b8bee39fe329bf250b9179a84a8928d209a357
diff --git a/services/camera/libcameraservice/common/Camera2ClientBase.cpp b/services/camera/libcameraservice/common/Camera2ClientBase.cpp index c0d6da6..ccd1e4d 100644 --- a/services/camera/libcameraservice/common/Camera2ClientBase.cpp +++ b/services/camera/libcameraservice/common/Camera2ClientBase.cpp
@@ -104,7 +104,8 @@ return res; } - res = mDevice->setNotifyCallback(this); + wp<CameraDeviceBase::NotificationListener> weakThis(this); + res = mDevice->setNotifyCallback(weakThis); return OK; }