fix for misc errors

- reference to out of scope stack var
- freeing fixes size array (never allocated)
- add matching va_end for va_start
This commit is contained in:
2013-07-13 05:46:48 +00:00
parent 8a40444d6b
commit eedd541929
3 changed files with 2 additions and 4 deletions

View File

@@ -4142,6 +4142,7 @@ void uiButGetStrInfo(bContext *C, uiBut *but, ...)
si->strinfo = tmp;
}
va_end(args);
if (free_items && items)
MEM_freeN(items);