Memory leak issue between extern (c) and D function
Guillaume Piolat
first.last at spam.org
Fri Apr 14 11:18:49 UTC 2023
On Friday, 14 April 2023 at 11:15:59 UTC, Guillaume Piolat wrote:
> OP could add another extern(C) D function to free the allocated
> object.
> Or another extern(C) D function to call GC.addRoot
Or simpler, add that object to a list of object in D DLL
__gshared list, then clear the list
(or set individual reference to null) if you want to reclaim
space.
More information about the Digitalmars-d-learn
mailing list