[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:
Benoît Minisini 2012-05-28 08:08:36 +00:00
parent 083ed1dd8e
commit c1decfddfd
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -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
}