Right now the Core API use different memory APIs including new and malloc, this was mostly used for testing purposes and see if it was possible to write a Core API in C. Now that the API is more stable, this memory can be modified an use smart pointers, the smart pointers can be kept in the opaque pointer, and once the opaque pointer is destroyed, all these structures would be destroyed automatically if we keep them in the opaque structure and this keeps the ownership.
Right now the Core API use different memory APIs including
new
andmalloc
, this was mostly used for testing purposes and see if it was possible to write a Core API in C. Now that the API is more stable, this memory can be modified an use smart pointers, the smart pointers can be kept in the opaque pointer, and once the opaque pointer is destroyed, all these structures would be destroyed automatically if we keep them in the opaque structure and this keeps the ownership.