mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Fix reference counting problem in pyVaultNode::AddNode().
This is fixed in H'uru via extensive use of RAII around vault nodes.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user