I would just like to clarify something from the Documentation. The docs says that if I pass
NULL to the
av parameters (respectively) then
atom_setparse will allocate automatically an array of atoms with the needed length for me. On the other hand, it also says that ‘Any allocated memory should be freed with
sysmem_freeptr().’ My question is: should I free the internally allocated atom array at some point if I passed
NULL as parameters or will Max take care of this?
Yes, you have to free the internally allocated memory – think about it, even if a global register of the allocated stuff was kept, Max would have no way to know when to free things in it… does it make sense?
thanks. Sounds quite logical…
C74 RSS Feed | © Copyright Cycling '74