Correct a potential memory leak
Thanks to Ratany for drawing my attention to it.
This commit is contained in:
@@ -1736,7 +1736,10 @@ void inventory_offer_handler(LLOfferInfo* info)
|
|||||||
{
|
{
|
||||||
// NaCl - Antispam Registry
|
// NaCl - Antispam Registry
|
||||||
if (NACLAntiSpamRegistry::checkQueue((U32)NACLAntiSpamRegistry::QUEUE_INVENTORY,info->mFromID))
|
if (NACLAntiSpamRegistry::checkQueue((U32)NACLAntiSpamRegistry::QUEUE_INVENTORY,info->mFromID))
|
||||||
|
{
|
||||||
|
delete info;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
// NaCl End
|
// NaCl End
|
||||||
//If muted, don't even go through the messaging stuff. Just curtail the offer here.
|
//If muted, don't even go through the messaging stuff. Just curtail the offer here.
|
||||||
if (LLMuteList::getInstance()->isMuted(info->mFromID, info->mFromName))
|
if (LLMuteList::getInstance()->isMuted(info->mFromID, info->mFromName))
|
||||||
|
|||||||
Reference in New Issue
Block a user