In reset method in c10/util/intrusive_ptr.h

Refer to:

When decrement refcount_ from 1 to 0, why not release_resources() directly but additionally determine weakcount != 1? Should weakcount_ controls the object itself, and refcount_controls the resources occupied by the object?