I’m using a function from reflex generated library which returns a pointer to an object which the function has created.
Basically :
A* theFunc() { return new A(); }
Where A is not a TObject (it is actually a std::vector).
I’d like to avoid memory leaks, so how can I delete it from python ? I guess del() won’t be enough to also delete the actual c++ object ?