[PD-dev] How to free memory of t_symbol

IOhannes m zmölnig zmoelnig at iem.at
Thu Feb 22 14:48:51 CET 2024


Am 22. Februar 2024 10:19:27 MEZ schrieb Alexandros Drymonitis <adrcki at gmail.com>:
>I have a data structure with a symbol and an array of symbols that store array names defined as:
>
>```
>t_symbol **x_weights_arrays;
>t_symbol *x_biases_array;
>```
>
>When I'm done with them, I want to free the memory, but calling free(x_biases_array) doesn't seem to work, and once called, as soon as I try to do something else in Pd (like unlock the patch and choose an object), Pd crashes.
>

Never free symbols.
A symbol is created by `gensym` and owned by Pd.





mfg.sfg.jfd
IOhannes




More information about the Pd-dev mailing list