Merge "wv aidl: fix native handle memory leak 2" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6eb5161dc1
@@ -269,6 +269,7 @@ SharedBufferBase::~SharedBufferBase() {
|
|||||||
sample.decrypt_buffer_size = totalSize;
|
sample.decrypt_buffer_size = totalSize;
|
||||||
|
|
||||||
if (in_args.mode == Mode::UNENCRYPTED && hasProtectedData) {
|
if (in_args.mode == Mode::UNENCRYPTED && hasProtectedData) {
|
||||||
|
native_handle_delete(handle);
|
||||||
detailedError = "Protected ranges found in allegedly clear data.";
|
detailedError = "Protected ranges found in allegedly clear data.";
|
||||||
return toNdkScopedAStatus(Status::ERROR_DRM_CANNOT_HANDLE, detailedError);
|
return toNdkScopedAStatus(Status::ERROR_DRM_CANNOT_HANDLE, detailedError);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user