Merge pull request #4548 from vnen/pr-fix-win64-build

Fix memory leak
This commit is contained in:
Rémi Verschelde 2016-05-05 09:27:22 +02:00
commit c1b53a0c5d
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ void DocData::merge_from(const DocData& p_data) {
// since polymorphic functions are allowed we need to check the type of // since polymorphic functions are allowed we need to check the type of
// the arguments so we make sure they are different. // the arguments so we make sure they are different.
int arg_count = cf.methods[j].arguments.size(); 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; for (int l = 0; l < arg_count; ++l) arg_used[l] = false;
// also there is no guarantee that argument ordering will match, so we // 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 // have to check one by one so we make sure we have an exact match