1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Merge pull request #439 from Hoikas/createplayer-crash

Fix inappropriate UnRefing in VaultCreateNodeTrans
This commit is contained in:
2014-06-05 17:26:33 -04:00

View File

@ -779,13 +779,14 @@ struct VaultCreateNodeTrans : NetAuthTrans {
void * m_param; void * m_param;
unsigned m_nodeId; unsigned m_nodeId;
VaultCreateNodeTrans ( VaultCreateNodeTrans (
NetVaultNode * templateNode, NetVaultNode * templateNode,
FNetCliAuthVaultNodeCreated callback, FNetCliAuthVaultNodeCreated callback,
void * param void * param
); );
~VaultCreateNodeTrans();
bool Send (); bool Send ();
void Post (); void Post ();
bool Recv ( bool Recv (
@ -4056,7 +4057,13 @@ VaultCreateNodeTrans::VaultCreateNodeTrans (
, m_param(param) , m_param(param)
, m_nodeId(0) , 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_param,
m_nodeId m_nodeId
); );
m_templateNode->UnRef();
} }
//============================================================================ //============================================================================