Browse Source

Fix a crash. The removed functionality should NEVER have been there anyway.

Adam Johnson 14 years ago
parent
commit
22440541ea
  1. 8
      Sources/Plasma/FeatureLib/pfPython/pyVaultNode.cpp

8
Sources/Plasma/FeatureLib/pfPython/pyVaultNode.cpp

@ -436,11 +436,9 @@ PyObject* pyVaultNode::AddNode(pyVaultNode* pynode, PyObject* cbObject, UInt32 c
(FVaultAddChildNodeCallback)_AddNodeCallback,
cb
);
PyObject * nodeRef = cb->fPyNodeRef = pyVaultNodeRef::New(fNode, pynode->fNode);
Py_INCREF(nodeRef); // incref it, because we MUST return a new PyObject, and the callback "steals" the ref from us
cb->SetNode(pynode->fNode);
return nodeRef;
// just return a None object
PYTHON_RETURN_NONE;
}
else
{

Loading…
Cancel
Save