Don't crash if pay floater is closed before reply arrives from the server

Fix from upstream
Potentially fixes http://crash.singularityviewer.org/crashes.php?stacktrace=processPayPriceReply
This commit is contained in:
Latif Khalifa
2013-10-11 13:14:59 +02:00
parent 477daff92f
commit 69f273eb0e

View File

@@ -136,6 +136,8 @@ LLFloaterPay::LLFloaterPay(const std::string& name,
// Destroys the object
LLFloaterPay::~LLFloaterPay()
{
// In case this floater is currently waiting for a reply.
gMessageSystem->setHandlerFuncFast(_PREHASH_PayPriceReply, 0, 0);
}
// static