Browse Source

Fix a memory leak

Michael Hansen 14 years ago
parent
commit
418d29fc34
  1. 1
      Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglCore.cpp

1
Sources/Plasma/PubUtilLib/plNetGameLib/Private/plNglCore.cpp

@ -113,6 +113,7 @@ void ReportNetErrorTrans::Post () {
void ReportNetError (ENetProtocol protocol, ENetError error) { void ReportNetError (ENetProtocol protocol, ENetError error) {
ReportNetErrorTrans * trans = NEW(ReportNetErrorTrans)(protocol, error); ReportNetErrorTrans * trans = NEW(ReportNetErrorTrans)(protocol, error);
NetTransSend(trans); NetTransSend(trans);
trans->DecRef();
} }
} using namespace Ngl; } using namespace Ngl;

Loading…
Cancel
Save