Fix missing va_end's

This commit is contained in:
Ben Payne 2015-02-10 18:08:55 -05:00
parent 0ffd7f5620
commit 591253d5b5
7 changed files with 11 additions and 2 deletions

View file

@ -1162,6 +1162,7 @@ const char *evaluatef(const char* string, ...)
va_list args;
va_start(args, string);
dVsprintf(buffer, sizeof(buffer), string, args);
va_end(args);
CodeBlock *newCodeBlock = new CodeBlock();
return newCodeBlock->compileExec(NULL, buffer, false, 0);
}