Browse Source

Merge pull request #439 from Hoikas/createplayer-crash

Fix inappropriate UnRefing in VaultCreateNodeTrans
Adam Johnson 11 years ago
parent
commit
f68556c04d
  1. 10
      Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp

10
Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp

@ -785,6 +785,7 @@ struct VaultCreateNodeTrans : NetAuthTrans {
FNetCliAuthVaultNodeCreated callback,
void * param
);
~VaultCreateNodeTrans();
bool Send ();
void Post ();
@ -4056,7 +4057,13 @@ VaultCreateNodeTrans::VaultCreateNodeTrans (
, m_param(param)
, m_nodeId(0)
{
m_templateNode->Ref();
m_templateNode->Ref("VaultCreateNodeTrans");
}
//============================================================================
VaultCreateNodeTrans::~VaultCreateNodeTrans()
{
m_templateNode->UnRef("VaultCreateNodeTrans");
}
//============================================================================
@ -4086,7 +4093,6 @@ void VaultCreateNodeTrans::Post () {
m_param,
m_nodeId
);
m_templateNode->UnRef();
}
//============================================================================

Loading…
Cancel
Save