MTP: Fix wrong delete operator from previous change.
Change-Id: I64e8fdc610495f21060727b6bed42d1584833405 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@@ -412,7 +412,7 @@ MtpResponseCode MtpServer::doGetObjectPropsSupported() {
|
||||
MtpObjectFormat format = mRequest.getParameter(1);
|
||||
MtpDevicePropertyList* properties = mDatabase->getSupportedObjectProperties(format);
|
||||
mData.putAUInt16(properties);
|
||||
delete[] properties;
|
||||
delete properties;
|
||||
return MTP_RESPONSE_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user