cdelete

Calls the destructor of a previously malloc'd class and frees its memory

__xdtor() is non-virtual and non-@nogc so let's just use destructor() method before freing object's memory

void
cdelete
(
T
)

Parameters

instance T

Class instance

Meta