diff options
author | 2009-03-02 22:54:33 -0800 | |
---|---|---|
committer | 2009-03-02 22:54:33 -0800 | |
commit | 0bb03408de8886e8d17013219967d42fb9c8cf8c (patch) | |
tree | 6edc73880d91bac5532cdbece4072f7c6ec7d257 /libs/ui/Camera.cpp | |
parent | 7222586f99599fb2de31293277b79e8d4a3acdc2 (diff) |
auto import from //depot/cupcake/@137055
Diffstat (limited to 'libs/ui/Camera.cpp')
-rw-r--r-- | libs/ui/Camera.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ui/Camera.cpp b/libs/ui/Camera.cpp index 6c60b853ea..b3cbda14fb 100644 --- a/libs/ui/Camera.cpp +++ b/libs/ui/Camera.cpp @@ -110,6 +110,8 @@ sp<Camera> Camera::connect() if (c->mCamera != 0) { c->mCamera->asBinder()->linkToDeath(c); c->mStatus = NO_ERROR; + } else { + c.clear(); } return c; } |