SL-16904 FIXED The viewer crashes after trying to empty trash containing calling card
parent
74641a1213
commit
8bd71fe6e8
|
|
@ -5762,12 +5762,13 @@ LLCallingCardBridge::LLCallingCardBridge(LLInventoryPanel* inventory,
|
|||
LLItemBridge(inventory, root, uuid)
|
||||
{
|
||||
mObserver = new LLCallingCardObserver(this);
|
||||
LLAvatarTracker::instance().addParticularFriendObserver(getItem()->getCreatorUUID(), mObserver);
|
||||
mCreatorUUID = getItem()->getCreatorUUID();
|
||||
LLAvatarTracker::instance().addParticularFriendObserver(mCreatorUUID, mObserver);
|
||||
}
|
||||
|
||||
LLCallingCardBridge::~LLCallingCardBridge()
|
||||
{
|
||||
LLAvatarTracker::instance().removeParticularFriendObserver(getItem()->getCreatorUUID(), mObserver);
|
||||
LLAvatarTracker::instance().removeParticularFriendObserver(mCreatorUUID, mObserver);
|
||||
|
||||
delete mObserver;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -457,6 +457,7 @@ public:
|
|||
void checkSearchBySuffixChanges();
|
||||
protected:
|
||||
LLCallingCardObserver* mObserver;
|
||||
LLUUID mCreatorUUID;
|
||||
};
|
||||
|
||||
class LLNotecardBridge : public LLItemBridge
|
||||
|
|
|
|||
Loading…
Reference in New Issue