[INTERPRETER]
* BUG: Fix memory leak with Lower$() and Upper$() on some null strings. git-svn-id: svn://localhost/gambas/trunk@6241 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
84a51a739d
commit
9cf45fc40d
1 changed files with 3 additions and 1 deletions
|
@ -371,7 +371,9 @@ void SUBR_upper(ushort code)
|
||||||
SUBR_ENTER_PARAM(1);
|
SUBR_ENTER_PARAM(1);
|
||||||
|
|
||||||
if (SUBR_check_string(PARAM))
|
if (SUBR_check_string(PARAM))
|
||||||
STRING_void_value(&SP[-1]);
|
{
|
||||||
|
VOID_STRING(&SP[-1]);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
len = PARAM->_string.len;
|
len = PARAM->_string.len;
|
||||||
|
|
Loading…
Reference in a new issue