[slang-users] Do I have to free MMT objects which are accessed from
an array?
Doug Burke
dburke at cfa.harvard.edu
Wed Jul 13 11:55:51 EDT 2005
I have defined my own type/class and want to access an array of them
from
C, so I gave something like (ignoring error checking):
SLang_Array_Type *at;
SLang_MMT_Type *mmt = NULL;
int dims;
(void) SLang_pop_array_of_type (&at, my_type);
/* access the first element */
dims = 0;
(void) SLang_get_array_element (at, &zero, &mmt);
I can then handle mmt as I want. The question I have is do I need to
call
SLang_free_mmt() on mmt once I've finished using it?
Thanks,
Doug
More information about the slang-users-l
mailing list