diff --git a/media/mtp/MtpServer.cpp b/media/mtp/MtpServer.cpp index 6d2eec3d69107..30abfb8c5ef43 100644 --- a/media/mtp/MtpServer.cpp +++ b/media/mtp/MtpServer.cpp @@ -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; }