Function disposeObj

Dispose and nullify a single object, that might be null

void disposeObj(T) (
  ref T obj
)
if (is(T : Disposable));