1
0
Fork 0

fixed leak in completions generator

This commit is contained in:
Jan Steemann 2013-09-16 10:33:42 +02:00
parent ec3ffa9bca
commit 9c95582703
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ static char* CompletionGenerator (char const* text, int state) {
prefix = TRI_DuplicateString(text);
}
v8::HandleScope scope;
// compute all possible completions
v8::Handle<v8::Array> properties;
v8::Handle<v8::String> cpl = v8::String::New("_COMPLETIONS");