Browse Source

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

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

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

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

Loading…
Cancel
Save