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/lllistcontextmenu.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/lllistcontextmenu.cpp')
-rwxr-xr-x | indra/newview/lllistcontextmenu.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/lllistcontextmenu.cpp b/indra/newview/lllistcontextmenu.cpp index a624c9fb87..6bda8b1d0d 100755 --- a/indra/newview/lllistcontextmenu.cpp +++ b/indra/newview/lllistcontextmenu.cpp @@ -110,6 +110,7 @@ void LLListContextMenu::handleMultiple(functor_t functor, const uuid_vec_t& ids) // static LLContextMenu* LLListContextMenu::createFromFile(const std::string& filename) { + llassert(LLMenuGL::sMenuContainer != NULL); return LLUICtrlFactory::getInstance()->createFromFile<LLContextMenu>( filename, LLContextMenu::sMenuContainer, LLViewerMenuHolderGL::child_registry_t::instance()); } |