diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-27 14:54:06 -0800 | 
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-27 14:54:06 -0800 | 
| commit | b6684dce80db985803c7866c6955d1ca896b1b5c (patch) | |
| tree | 4d401db011e8e02705a8c1c9a8f9dc4d4afe44cd | |
| parent | f8f34c14c4913d008182a5853613ffbf154d9a26 (diff) | |
CID-196
Checker: RESOURCE_LEAK
Function: process_improved_im(LLMessageSystem *, void **)
File: /indra/newview/llviewermessage.cpp
partial fix.  either coverity doesn't grok that the remaining case gets freed way down the line by the callbacks, or.. it really doesnt.
| -rw-r--r-- | indra/newview/llpanelgroup.cpp | 8 | ||||
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 4 | 
2 files changed, 8 insertions, 4 deletions
diff --git a/indra/newview/llpanelgroup.cpp b/indra/newview/llpanelgroup.cpp index 1d447a22d7..ac58c35b06 100644 --- a/indra/newview/llpanelgroup.cpp +++ b/indra/newview/llpanelgroup.cpp @@ -560,10 +560,10 @@ void LLPanelGroup::chatGroup()  }  void LLPanelGroup::showNotice(const std::string& subject, -							  const std::string& message, -							  const bool& has_inventory, -							  const std::string& inventory_name, -							  LLOfferInfo* inventory_offer) +			      const std::string& message, +			      const bool& has_inventory, +			      const std::string& inventory_name, +			      LLOfferInfo* inventory_offer)  {  	LLPanelGroupNotices* panel_notices = findChild<LLPanelGroupNotices>("group_notices_tab_panel");  	if(!panel_notices) diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 36710e7532..764c54da1a 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -1987,6 +1987,10 @@ void process_improved_im(LLMessageSystem *msg, void **user_data)  				LLPanelGroup::showNotice(subj,mes,group_id,has_inventory,item_name,info);  			} +			else +			{ +				delete info; +			}  		}  		break;  	case IM_GROUP_INVITATION:  | 
