summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Gloria Wang <gwang@google.com> 2011-03-25 10:01:37 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-03-25 10:01:37 -0700
commitb8b85ea296b09cfc5f986e8ee38b959776050d43 (patch)
tree66dfacad5f9e3c91623cc4d1e7ac2ad3fdb9fd1f
parentcc4b6a61c6df67c211ac85d49f457fd562abf142 (diff)
parent4c87a75073987e30b36f6be781cd10f696876ba4 (diff)
Merge "Fix for bug 4126624. Change the mDrmManagerClientImpl to sp to avoid double delete the pointer." into honeycomb-mr1
-rw-r--r--drm/libdrmframework/DrmManagerClient.cpp1
-rw-r--r--include/drm/DrmManagerClient.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/drm/libdrmframework/DrmManagerClient.cpp b/drm/libdrmframework/DrmManagerClient.cpp
index 1d1e258d6845..c1f382aa3420 100644
--- a/drm/libdrmframework/DrmManagerClient.cpp
+++ b/drm/libdrmframework/DrmManagerClient.cpp
@@ -32,7 +32,6 @@ DrmManagerClient::~DrmManagerClient() {
DrmManagerClientImpl::remove(mUniqueId);
mDrmManagerClientImpl->removeClient(mUniqueId);
mDrmManagerClientImpl->setOnInfoListener(mUniqueId, NULL);
- delete mDrmManagerClientImpl; mDrmManagerClientImpl = NULL;
}
status_t DrmManagerClient::setOnInfoListener(
diff --git a/include/drm/DrmManagerClient.h b/include/drm/DrmManagerClient.h
index 12142bce1ca7..7a0bf4fd1c70 100644
--- a/include/drm/DrmManagerClient.h
+++ b/include/drm/DrmManagerClient.h
@@ -365,7 +365,7 @@ public:
private:
int mUniqueId;
- DrmManagerClientImpl* mDrmManagerClientImpl;
+ sp<DrmManagerClientImpl> mDrmManagerClientImpl;
};
};