diff options
author | James Cook <james@lindenlab.com> | 2009-10-22 12:15:53 -0700 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2009-10-22 12:15:53 -0700 |
commit | a464d469705aeae57fcdbfafa45e2bf592a182c5 (patch) | |
tree | b607dbb94ef928c7b85d36e36d0c82c9bb458af5 /indra/newview/llviewerparcelmgr.cpp | |
parent | f58857824e71edc39d98180e7750aee9ff1d780e (diff) |
EXT-1651 Fix "You cannot close the Buy Land window" error message that prevents buying land more than once per login session.
Made LLFloaterBuyLandUI destroy itself on close, which cleans up pending currency transactions.
Changed LLViewerParcelMgr::deleteBuyInfo() signature because I found it confusing.
Reviewed with Richard.
Diffstat (limited to 'indra/newview/llviewerparcelmgr.cpp')
-rw-r--r-- | indra/newview/llviewerparcelmgr.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp index 44de848d19..77b023f6dd 100644 --- a/indra/newview/llviewerparcelmgr.cpp +++ b/indra/newview/llviewerparcelmgr.cpp @@ -1162,10 +1162,11 @@ void LLViewerParcelMgr::sendParcelBuy(ParcelBuyInfo* info) msg->sendReliable(info->mHost); } -void LLViewerParcelMgr::deleteParcelBuy(ParcelBuyInfo*& info) +void LLViewerParcelMgr::deleteParcelBuy(ParcelBuyInfo* *info) { - delete info; - info = NULL; + // Must be here because ParcelBuyInfo is local to this .cpp file + delete *info; + *info = NULL; } void LLViewerParcelMgr::sendParcelDeed(const LLUUID& group_id) |