diff options
author | Andrew A. de Laix <alain@lindenlab.com> | 2010-06-25 14:53:35 -0700 |
---|---|---|
committer | Andrew A. de Laix <alain@lindenlab.com> | 2010-06-25 14:53:35 -0700 |
commit | 3ec7438388c485e21668d3b1cabe85b3192263b1 (patch) | |
tree | 853cc5498d1cd8f4f05c43d023fd697605571e29 /indra | |
parent | 92c33da517fc313ee79011fb072ea116c24e0dfc (diff) |
Fix EXT-8074: unregister floater as message handler on destruction to prevent race from user closing dialog and receiving price message.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloaterpay.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llfloaterpay.cpp b/indra/newview/llfloaterpay.cpp index 51364594e4..ba7526ccd5 100644 --- a/indra/newview/llfloaterpay.cpp +++ b/indra/newview/llfloaterpay.cpp @@ -145,6 +145,9 @@ LLFloaterPay::~LLFloaterPay() { std::for_each(mCallbackData.begin(), mCallbackData.end(), DeletePointer()); // Name callbacks will be automatically disconnected since LLFloater is trackable + + // In case this floater is currently waiting for a reply. + gMessageSystem->setHandlerFuncFast(_PREHASH_PayPriceReply, 0, 0); } BOOL LLFloaterPay::postBuild() |