mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Fix inappropriate UnRefing in VaultCreateNodeTrans
This commit is contained in:
@ -779,13 +779,14 @@ struct VaultCreateNodeTrans : NetAuthTrans {
|
||||
void * m_param;
|
||||
|
||||
unsigned m_nodeId;
|
||||
|
||||
|
||||
VaultCreateNodeTrans (
|
||||
NetVaultNode * templateNode,
|
||||
FNetCliAuthVaultNodeCreated callback,
|
||||
void * param
|
||||
);
|
||||
|
||||
~VaultCreateNodeTrans();
|
||||
|
||||
bool Send ();
|
||||
void Post ();
|
||||
bool Recv (
|
||||
@ -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();
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
|
Reference in New Issue
Block a user