diff options
author | Stinson Linden <stinson@lindenlab.com> | 2014-05-05 23:24:34 +0100 |
---|---|---|
committer | Stinson Linden <stinson@lindenlab.com> | 2014-05-05 23:24:34 +0100 |
commit | 001621dfc21942a6ae0075ca3eef31720f42477b (patch) | |
tree | cd86dcd3b02df87a76ee993e4bf98ec4e8223f5f /indra/newview/llchiclet.cpp | |
parent | 205503dd84479be4989e5f5567a1d187cc0e71eb (diff) |
MAINT-4009: Patching a small memory leak for when menu items were being created before the viewer window initialization had created the menu holder. Also, added llasserts in other cases when referencing the menu holder to ensure the holder is non-null.
Diffstat (limited to 'indra/newview/llchiclet.cpp')
-rwxr-xr-x | indra/newview/llchiclet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp index b1dce42dfd..c0823182c0 100755 --- a/indra/newview/llchiclet.cpp +++ b/indra/newview/llchiclet.cpp @@ -204,6 +204,7 @@ void LLNotificationChiclet::createMenu() enable_registrar.add("NotificationWellChicletMenu.EnableItem", boost::bind(&LLNotificationChiclet::enableMenuItem, this, _2)); + llassert(LLMenuGL::sMenuContainer != NULL); mContextMenu = LLUICtrlFactory::getInstance()->createFromFile<LLContextMenu> ("menu_notification_well_button.xml", LLMenuGL::sMenuContainer, |