Fix for bug 4126624.
Change the mDrmManagerClientImpl to sp to avoid double delete the pointer. Change-Id: I7aacea1bc58ab6425ef6f6f09472c6f2970ebb4d
This commit is contained in:
@@ -32,7 +32,6 @@ DrmManagerClient::~DrmManagerClient() {
|
|||||||
DrmManagerClientImpl::remove(mUniqueId);
|
DrmManagerClientImpl::remove(mUniqueId);
|
||||||
mDrmManagerClientImpl->removeClient(mUniqueId);
|
mDrmManagerClientImpl->removeClient(mUniqueId);
|
||||||
mDrmManagerClientImpl->setOnInfoListener(mUniqueId, NULL);
|
mDrmManagerClientImpl->setOnInfoListener(mUniqueId, NULL);
|
||||||
delete mDrmManagerClientImpl; mDrmManagerClientImpl = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t DrmManagerClient::setOnInfoListener(
|
status_t DrmManagerClient::setOnInfoListener(
|
||||||
|
|||||||
@@ -365,7 +365,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
int mUniqueId;
|
int mUniqueId;
|
||||||
DrmManagerClientImpl* mDrmManagerClientImpl;
|
sp<DrmManagerClientImpl> mDrmManagerClientImpl;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user