ophelius
Member
When adding ds_lists or ds_maps to an existing ds_list, you can mark them as such using ds_list_mark_as_list() and ds_list_mark_as_map(), so that when you clear the parent list, it also deallocates those added data structures from memory.
But I'm trying to figure out how to mark a data structure added to a ds_map, there's no such function. This is causing memory leaks, and clearing the parent ds_map doesn't deallocate those added data structures.
How would I go about making sure that any ds_lists or ds_maps added to a parent ds_map is fully cleared without memory leaks? Thanks
But I'm trying to figure out how to mark a data structure added to a ds_map, there's no such function. This is causing memory leaks, and clearing the parent ds_map doesn't deallocate those added data structures.
How would I go about making sure that any ds_lists or ds_maps added to a parent ds_map is fully cleared without memory leaks? Thanks