Re: [Vala] array memory leak?



Hi Tal,

I know it's little desperate but could you:

No, of course its not :-)
Thanks for taking a look on this, I'm running out of ideas...

1. Post the generated C code?

See attached. Code looks ok for me, maybe g_free do something wrong (see
_vala_array_destroy)?

2. Try to replace string array with int array.

Done, no leak.

void Dummy4()
{
  const int LOOPS=100000000;
  int[] dummy = new int[LOOPS];
  for(var xx=0; xx<LOOPS; xx++)
    dummy[xx]=xx;
}

This is what I expected, because e.g. the Dummy1 "leak" shows up only if
len is smaller than 120. Maybe this is special problem regarding to
"small" strings.


-- 
Bernhard

Attachment: al.c
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]