commit | b3be006498f28f2630264135e88d266b540bcec3 | [log] [tgz] |
---|---|---|
author | Daichi Hirono <hirono@google.com> | Thu Feb 25 12:42:58 2016 +0900 |
committer | Daichi Hirono <hirono@google.com> | Fri Feb 26 12:56:57 2016 +0900 |
tree | cf0e73cf3765cf3df953d22eae325747c412d7d3 | |
parent | 78229d88678932244f7cbb6e52ad43c0d986a780 [diff] [blame] |
Fix compiler warning in media/mtp. BUG=27152673 Change-Id: I0a5a7f2005bd76acf4d09353305b66af3fd29e4b
diff --git a/media/mtp/MtpProperty.cpp b/media/mtp/MtpProperty.cpp index d58e2a4..2be2d79 100644 --- a/media/mtp/MtpProperty.cpp +++ b/media/mtp/MtpProperty.cpp
@@ -544,7 +544,7 @@ MtpPropertyValue* result = new MtpPropertyValue[length]; for (uint32_t i = 0; i < length; i++) if (!readValue(packet, result[i])) { - delete result; + delete [] result; return NULL; } return result;