From 418d29fc3465d8dc49e0f5c96d70a8fdad7405ce Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Wed, 13 Apr 2011 09:48:34 -0700 Subject: [PATCH] Fix a memory leak --- Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglCore.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglCore.cpp b/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglCore.cpp index be656850..3c50dd9e 100644 --- a/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglCore.cpp +++ b/Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglCore.cpp @@ -113,6 +113,7 @@ void ReportNetErrorTrans::Post () { void ReportNetError (ENetProtocol protocol, ENetError error) { ReportNetErrorTrans * trans = NEW(ReportNetErrorTrans)(protocol, error); NetTransSend(trans); + trans->DecRef(); } } using namespace Ngl;