diff options
author | Rye <rye@lindenlab.com> | 2024-11-04 12:28:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 12:28:42 -0500 |
commit | 9b124b7260af3a15ab410eec796043747d9bf2ff (patch) | |
tree | caa1565508057626d8f9a268d429731ebd37b72b /indra/newview/llfloaternotificationstabbed.cpp | |
parent | a895f4e02052729092359ee31a40ee0e4e3ed961 (diff) | |
parent | 2c7f57b3d6967c618d90d0cab97ec5dda221d3b0 (diff) |
Merge pull request #3007 from secondlife/rye/crashfixes
Fixes various small memory leaks and some crashes
Diffstat (limited to 'indra/newview/llfloaternotificationstabbed.cpp')
-rw-r--r-- | indra/newview/llfloaternotificationstabbed.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llfloaternotificationstabbed.cpp b/indra/newview/llfloaternotificationstabbed.cpp index e571011acf..8eeba095b2 100644 --- a/indra/newview/llfloaternotificationstabbed.cpp +++ b/indra/newview/llfloaternotificationstabbed.cpp @@ -45,7 +45,6 @@ LLFloaterNotificationsTabbed::LLFloaterNotificationsTabbed(const LLSD& key) : LL mGroupNoticeMessageList(NULL), mTransactionMessageList(NULL), mSystemMessageList(NULL), - mNotificationsSeparator(NULL), mNotificationsTabContainer(NULL), NOTIFICATION_TABBED_ANCHOR_NAME("notification_well_panel"), IM_WELL_ANCHOR_NAME("im_well_panel"), @@ -54,7 +53,7 @@ LLFloaterNotificationsTabbed::LLFloaterNotificationsTabbed(const LLSD& key) : LL { setOverlapsScreenChannel(true); mNotificationUpdates.reset(new NotificationTabbedChannel(this)); - mNotificationsSeparator = new LLNotificationSeparator(); + mNotificationsSeparator = std::make_unique<LLNotificationSeparator>(); } //--------------------------------------------------------------------------------- @@ -117,6 +116,7 @@ void LLFloaterNotificationsTabbed::setSysWellChiclet(LLSysWellChiclet* chiclet) //--------------------------------------------------------------------------------- LLFloaterNotificationsTabbed::~LLFloaterNotificationsTabbed() { + mNotificationsSeparator.reset(); } //--------------------------------------------------------------------------------- |