Removes a reference from the given @list. If the reference count falls to zero, the @list is deleted.