Skip to content
Snippets Groups Projects
Commit 8554eb5f authored by Richard Linden's avatar Richard Linden
Browse files

SH-4242 FIX interesting: Mac viewer crashes on exit

made notifications subsystem touch instancetracker<notificationchannel>
in constructor so that teardown order is preserved
parent fe3cfb30
No related branches found
No related tags found
No related merge requests found
...@@ -1207,6 +1207,9 @@ LLNotifications::LLNotifications() ...@@ -1207,6 +1207,9 @@ LLNotifications::LLNotifications()
mIgnoreAllNotifications(false) mIgnoreAllNotifications(false)
{ {
LLUICtrl::CommitCallbackRegistry::currentRegistrar().add("Notification.Show", boost::bind(&LLNotifications::addFromCallback, this, _2)); 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();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment