diff --git a/Sources/Plasma/FeatureLib/pfPython/pyVaultNode.cpp b/Sources/Plasma/FeatureLib/pfPython/pyVaultNode.cpp index 07d92d9e..534bc3fc 100644 --- a/Sources/Plasma/FeatureLib/pfPython/pyVaultNode.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/pyVaultNode.cpp @@ -441,7 +441,8 @@ PyObject* pyVaultNode::AddNode(pyVaultNode* pynode, PyObject* cbObject, UInt32 c ); if (newNode) { - newNode->IncRef(); + // No need to increment the newNode's reference count; the pynode + // will steal the current reference. pynode->fNode->DecRef(); pynode->fNode = newNode; }