Fix use after free of inventory offer in LLGroupNoticeNotificationListItem::onClickAttachment
This is due to forceResponse deleting the inventory offer upon completionmeow-7.2.2
parent
2745465c73
commit
59062cec1c
|
|
@ -521,8 +521,6 @@ void LLGroupNoticeNotificationListItem::close()
|
|||
void LLGroupNoticeNotificationListItem::onClickAttachment()
|
||||
{
|
||||
if (mInventoryOffer != NULL) {
|
||||
mInventoryOffer->forceResponse(IOR_ACCEPT);
|
||||
|
||||
static const LLUIColor textColor = LLUIColorTable::instance().getColor(
|
||||
"GroupNotifyDimmedTextColor");
|
||||
mAttachmentTextBox->setColor(textColor);
|
||||
|
|
@ -532,7 +530,7 @@ void LLGroupNoticeNotificationListItem::onClickAttachment()
|
|||
if (!isAttachmentOpenable(mInventoryOffer->mType)) {
|
||||
LLNotifications::instance().add("AttachmentSaved", LLSD(), LLSD());
|
||||
}
|
||||
|
||||
mInventoryOffer->forceResponse(IOR_ACCEPT);
|
||||
mInventoryOffer = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue