Browse Source

Fix memory leak in Relto sharing

Adam Johnson 11 years ago
parent
commit
f78deb37d3
  1. 8
      Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp

8
Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp

@ -759,11 +759,11 @@ void plNetLinkingMgr::OfferLinkToPlayer( const plAgeLinkStruct * inInfo, uint32_
// for backwards compatibility // for backwards compatibility
void plNetLinkingMgr::OfferLinkToPlayer( const plAgeInfoStruct * inInfo, uint32_t playerID ) void plNetLinkingMgr::OfferLinkToPlayer( const plAgeInfoStruct * inInfo, uint32_t playerID )
{ {
plAgeLinkStruct *ageLink = new plAgeLinkStruct; plAgeLinkStruct ageLink;
ageLink->GetAgeInfo()->CopyFrom(inInfo); ageLink.GetAgeInfo()->CopyFrom(inInfo);
ageLink->SetLinkingRules(plNetCommon::LinkingRules::kBasicLink); ageLink.SetLinkingRules(plNetCommon::LinkingRules::kBasicLink);
OfferLinkToPlayer(ageLink, playerID); OfferLinkToPlayer(&ageLink, playerID);
} }
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////

Loading…
Cancel
Save