aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kaiser <gkaiser@google.com>2016-03-28 14:29:42 -0700
committerGreg Kaiser <gkaiser@google.com>2016-06-27 11:16:40 -0700
commitaa24216d07eb84a8beb2a8c9d84db451afa23f5a (patch)
treeb565d17cff5221a4b45b557e967409321585ff1f
parent0e02ab0fde51c5d7cf58232850c5b6ff6c258dd6 (diff)
downloadplatform_sdk-aa24216d07eb84a8beb2a8c9d84db451afa23f5a.tar.gz
platform_sdk-aa24216d07eb84a8beb2a8c9d84db451afa23f5a.tar.bz2
platform_sdk-aa24216d07eb84a8beb2a8c9d84db451afa23f5a.zip
find_java2: Fix deallocation bug
Since 'fviBuffer' was allocated with an array new, it needs to be deallocated with an array delete. Change-Id: I0a96ec78b0d230f64566ad16df0a58c9cdc7e043
-rwxr-xr-xfind_java2/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/find_java2/src/utils.cpp b/find_java2/src/utils.cpp
index 9a9e3d227..7f4aa02bc 100755
--- a/find_java2/src/utils.cpp
+++ b/find_java2/src/utils.cpp
@@ -77,7 +77,7 @@ void initUtils(const TCHAR *appName) {
}
}
}
- delete fviBuffer;
+ delete[] fviBuffer;
}
CString getAppName() {