diff options
author | Richard Linden <none@none> | 2013-06-24 15:01:16 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-06-24 15:01:16 -0700 |
commit | 8554eb5fcd1bfe7066ae6f6130378a1dfa3141dc (patch) | |
tree | 8d38b15c4ae5e0fe360ca775605fc528cceb0b4b /indra/llui/llnotifications.cpp | |
parent | fe3cfb30d504155850ddf3752d2f55e6311990d6 (diff) |
SH-4242 FIX interesting: Mac viewer crashes on exit
made notifications subsystem touch instancetracker<notificationchannel>
in constructor so that teardown order is preserved
Diffstat (limited to 'indra/llui/llnotifications.cpp')
-rwxr-xr-x | indra/llui/llnotifications.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp index 37b0a52036..7932299281 100755 --- a/indra/llui/llnotifications.cpp +++ b/indra/llui/llnotifications.cpp @@ -1207,6 +1207,9 @@ LLNotifications::LLNotifications() mIgnoreAllNotifications(false) { LLUICtrl::CommitCallbackRegistry::currentRegistrar().add("Notification.Show", boost::bind(&LLNotifications::addFromCallback, this, _2)); + + // touch the instance tracker for notification channels, so that it will still be around in our destructor + LLInstanceTracker<LLNotificationChannel, std::string>::instanceCount(); } |