[INTERPRETER]
* BUG: Enumerating the Param class does not leak memory in some cases anymore. git-svn-id: svn://localhost/gambas/trunk@4788 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
083ed1dd8e
commit
c1decfddfd
2 changed files with 3 additions and 4 deletions
main/gbx
|
@ -104,10 +104,9 @@ BEGIN_METHOD_VOID(Param_next)
|
|||
GB_StopEnum();
|
||||
else
|
||||
{
|
||||
VALUE_conv(&PP[*index], T_VARIANT);
|
||||
TEMP = PP[*index];
|
||||
(*index)++;
|
||||
GB_ReturnConvVariant();
|
||||
//VALUE_conv(&TEMP, T_VARIANT);
|
||||
}
|
||||
|
||||
END_METHOD
|
||||
|
|
|
@ -412,14 +412,14 @@ char *STRING_extend(char *str, int new_len)
|
|||
{
|
||||
sstr = alloc_string(new_len);
|
||||
#ifdef DEBUG_ME
|
||||
fprintf(stderr, "STRING_extend: NULL -> %p / %p\n", str, str->data);
|
||||
fprintf(stderr, "STRING_extend: NULL -> %p / %p\n", sstr, sstr->data);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
sstr = realloc_string(STRING_from_ptr(str), new_len);
|
||||
#ifdef DEBUG_ME
|
||||
fprintf(stderr, "STRING_extend: %p / %p -> %p / %p\n", STRING_from_ptr(*ptr), *ptr, str, str->data);
|
||||
fprintf(stderr, "STRING_extend: %p / %p -> %p / %p\n", STRING_from_ptr(str), str, sstr, sstr->data);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue