From 6d061b388374ed0621d8b7a7040e165c6bb04089 Mon Sep 17 00:00:00 2001 From: Armin Weatherwax Date: Thu, 16 Jun 2011 10:27:42 +0200 Subject: fix Bug #967 memleak in llfloaterregioninfo --- linden/indra/newview/llfloaterregioninfo.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/linden/indra/newview/llfloaterregioninfo.cpp b/linden/indra/newview/llfloaterregioninfo.cpp index 60bdfcd..505f8e6 100644 --- a/linden/indra/newview/llfloaterregioninfo.cpp +++ b/linden/indra/newview/llfloaterregioninfo.cpp @@ -1739,11 +1739,7 @@ void LLPanelEstateInfo::onClickRemoveEstateManager(void* user_data) //--------------------------------------------------------------------------- // Kick from estate methods //--------------------------------------------------------------------------- -struct LLKickFromEstateInfo -{ - LLPanelEstateInfo *mEstatePanelp; - LLUUID mAgentID; -}; + void LLPanelEstateInfo::onClickKickUser(void *user_data) { @@ -1770,10 +1766,7 @@ void LLPanelEstateInfo::onKickUserCommit(const std::vector& names, LLPanelEstateInfo* self = (LLPanelEstateInfo*)userdata; if(!self) return; - //keep track of what user they want to kick and other misc info - LLKickFromEstateInfo *kick_info = new LLKickFromEstateInfo(); - kick_info->mEstatePanelp = self; - kick_info->mAgentID = ids[0]; + //Bring up a confirmation dialog LLSD args; -- cgit v1.1