From 3dec7d563a2f3e1eb967ce2054a00b6620e3558c 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 6c60b853eac6..b3cbda14fb06 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