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:
@ -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);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user