ULONG STDMETHODCALLTYPE Release()

in ProfilingAPI/ELTProfiler/CorProfiler.h [137:147]


    ULONG STDMETHODCALLTYPE Release(void) override
    {
        int count = std::atomic_fetch_sub(&this->refCount, 1) - 1;

        if (count <= 0)
        {
            delete this;
        }

        return count;
    }