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

@ -2190,6 +2190,7 @@ void CMDerror(char *format, ...)
#else
vsnprintf( tempBuf, BUFMAX, format, args );
#endif
va_end(args);
if(fileName)
{

View file

@ -250,6 +250,7 @@ void CMDerror(char *format, ...)
#else
vsnprintf( tempBuf, BUFMAX, format, args );
#endif
va_end(args);
if(fileName)
{

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);
}