1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Fix memory leak in Relto sharing

This commit is contained in:
2014-04-26 17:47:45 -04:00
parent 783f0e9eb1
commit f78deb37d3

View File

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