diff --git a/pyc_object.h b/pyc_object.h index ade46c784..085944496 100644 --- a/pyc_object.h +++ b/pyc_object.h @@ -25,7 +25,7 @@ class PycRef { obj.m_obj = nullptr; } - ~PycRef<_Obj>() + ~PycRef() { if (m_obj) m_obj->delRef();