From b666637a5d345102e57802a5b08212ba50a1a669 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Wed, 28 May 2014 22:59:42 -0700 Subject: [PATCH] Fix debug crash due to ref miscounting --- Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp b/Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp index 8b671160..3a4ec3ec 100644 --- a/Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp +++ b/Sources/Plasma/PubUtilLib/plVault/plVaultClientApi.cpp @@ -5004,6 +5004,7 @@ uint8_t VaultAgeFindOrCreateChildAgeLink( // Search for our age NetVaultNode* temp = new NetVaultNode; + temp->Ref(); temp->SetNodeType(plVault::kNodeType_AgeInfo); VaultAgeInfoNode theAge(temp); theAge.SetAgeFilename(hack);