From 0bb03408de8886e8d17013219967d42fb9c8cf8c Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Mon, 2 Mar 2009 22:54:33 -0800 Subject: auto import from //depot/cupcake/@137055 --- libs/ui/Camera.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/ui/Camera.cpp') 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::connect() if (c->mCamera != 0) { c->mCamera->asBinder()->linkToDeath(c); c->mStatus = NO_ERROR; + } else { + c.clear(); } return c; } -- cgit v1.2.3-59-g8ed1b