summaryrefslogtreecommitdiff
path: root/tools/doc
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-05 09:27:22 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-05 09:27:22 +0200
commitc1b53a0c5da1c6cb7f8249b84f8238fbc3719b19 (patch)
tree8999378d0b74fae571a9eac367eb9d43a55c0899 /tools/doc
parent99e31e10053a96e794ff0c3391b0c5054f7ed0e8 (diff)
parent5930408746fab692aaf277ec7b6482e7055f3344 (diff)
Merge pull request #4548 from vnen/pr-fix-win64-build
Fix memory leak
Diffstat (limited to 'tools/doc')
-rw-r--r--tools/doc/doc_data.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/doc/doc_data.cpp b/tools/doc/doc_data.cpp
index ef5b558f51..30d419a9f3 100644
--- a/tools/doc/doc_data.cpp
+++ b/tools/doc/doc_data.cpp
@@ -64,7 +64,8 @@ void DocData::merge_from(const DocData& p_data) {
// since polymorphic functions are allowed we need to check the type of
// the arguments so we make sure they are different.
int arg_count = cf.methods[j].arguments.size();
- bool* arg_used = new bool[arg_count];
+ Vector<bool> arg_used;
+ arg_used.resize(arg_count);
for (int l = 0; l < arg_count; ++l) arg_used[l] = false;
// also there is no guarantee that argument ordering will match, so we
// have to check one by one so we make sure we have an exact match