Fix for bug 3477330
This patch fixs a crash bug caused by using a NULL DecryptHandle pointer. Fix by using sp<DecryptHandle> instead. Change-Id: Icbd59858385e8256125a615a3c82656b25319d44
This commit is contained in:
@@ -621,11 +621,6 @@ status_t BpDrmManagerService::closeDecryptSession(int uniqueId, DecryptHandle* d
|
||||
|
||||
remote()->transact(CLOSE_DECRYPT_SESSION, data, &reply);
|
||||
|
||||
if (NULL != decryptHandle->decryptInfo) {
|
||||
LOGV("deleting decryptInfo");
|
||||
delete decryptHandle->decryptInfo; decryptHandle->decryptInfo = NULL;
|
||||
}
|
||||
delete decryptHandle; decryptHandle = NULL;
|
||||
return reply.readInt32();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user