[slang-users] Do I have to free MMT objects which are accessed
from an array?
John E. Davis
davis at space.mit.edu
Wed Jul 13 12:08:24 EDT 2005
Doug Burke <dburke at cfa.harvard.edu> wrote:
> (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?
Yes, you have to free both the mmt and the array when you are finished.
--John
More information about the slang-users-l
mailing list