Correct a potential memory leak

Thanks to Ratany for drawing my attention to it.
This commit is contained in:
Inusaito Sayori
2013-08-22 10:06:34 -04:00
parent 4607bb6ea0
commit f90752e81c

View File

@@ -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))