From f187d98a76665d3e2d3142113b0f907ff273304c Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 6 Jun 2014 14:20:25 -0400 Subject: [PATCH] Revert "Fix inappropriate UnRefing in VaultCreateNodeTrans" This reverts commit 8f8bad63f0c81bea851b679b51a4663389315a99. It didn't do what it claimed to. --- .../PubUtilLib/plNetGameLib/Private/plNglAuth.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp b/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp index ac5cd584..b93b55d5 100644 --- a/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp +++ b/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglAuth.cpp @@ -779,14 +779,13 @@ struct VaultCreateNodeTrans : NetAuthTrans { void * m_param; unsigned m_nodeId; - + VaultCreateNodeTrans ( NetVaultNode * templateNode, FNetCliAuthVaultNodeCreated callback, void * param ); - ~VaultCreateNodeTrans(); - + bool Send (); void Post (); bool Recv ( @@ -4057,13 +4056,7 @@ VaultCreateNodeTrans::VaultCreateNodeTrans ( , m_param(param) , m_nodeId(0) { - m_templateNode->Ref("VaultCreateNodeTrans"); -} - -//============================================================================ -VaultCreateNodeTrans::~VaultCreateNodeTrans() -{ - m_templateNode->UnRef("VaultCreateNodeTrans"); + m_templateNode->Ref(); } //============================================================================ @@ -4093,6 +4086,7 @@ void VaultCreateNodeTrans::Post () { m_param, m_nodeId ); + m_templateNode->UnRef(); } //============================================================================