DecRef decrements the reference count for object o. If the object is NULL, nothing happens. If the reference count reaches zero, the object’s type’s deallocation function (which must not be NULL) is invoked.
()
| 209 | // DecRef decrements the reference count for object o. If the object is NULL, nothing happens. If the reference count |
| 210 | // reaches zero, the object’s type’s deallocation function (which must not be NULL) is invoked. |
| 211 | func (ob *PyObject) DecRef() { |
| 212 | if ob != nil || ob.rawptr == nil { |
| 213 | return |
| 214 | } |
| 215 | C.Py_DecRef(ob.rawptr) |
| 216 | } |
| 217 | |
| 218 | // IncRef increment the reference count for object o. The object may be NULL, in which case this method has no effect. |
| 219 | func (ob *PyObject) IncRef() { |
no outgoing calls
no test coverage detected