$unref method

void $unref()

Implementation

void $unref() {
  --$refCount;
  if ($refCount == 0 && $autoDispose) {
    dispose();
  }
}