Problem not related with this code. Thanks anyway :)
Alberto
Alberto Manuel Brandão Simões wrote:
Hi
I am working with XS, and creating an array. It is basically something
like:
array = newAV();
av_push(array, newSVuv(dictionary_get_occ(D, wid)));
for (j = 0; j < MAXENTRY; j++) {
twid = 0;
prob = 0.0;
twid = dictionary_get_id(D, wid, j);
if (twid) {
prob = dictionary_get_val(D, wid, j);
tword = word_list_get_by_id(T, twid);
av_push(array, newSVpv(tword, strlen(tword)));
av_push(array, newSVnv(prob));
}
}
RETVAL = newRV_noinc((SV*)array);
The question is: the objects created here (newSVpv, newSVnv and the
array) are freed in case they are no more used?
Thanks
Alberto
--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal