diff options
-rw-r--r-- | drm/libdrmframework/DrmManagerClient.cpp | 1 | ||||
-rw-r--r-- | include/drm/DrmManagerClient.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drm/libdrmframework/DrmManagerClient.cpp b/drm/libdrmframework/DrmManagerClient.cpp index 8b78132..b50199f 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 5011137..b8fe46d 100644 --- a/include/drm/DrmManagerClient.h +++ b/include/drm/DrmManagerClient.h @@ -368,7 +368,7 @@ public: private: int mUniqueId; - DrmManagerClientImpl* mDrmManagerClientImpl; + sp<DrmManagerClientImpl> mDrmManagerClientImpl; }; }; |