diff options
author | maksymsproductengine <maksymsproductengine@lindenlab.com> | 2014-02-05 20:45:09 +0200 |
---|---|---|
committer | maksymsproductengine <maksymsproductengine@lindenlab.com> | 2014-02-05 20:45:09 +0200 |
commit | e6c85c46c4e301c54391280f3e63765158ea1708 (patch) | |
tree | 4c689c05dddd20de72ac5efe51b82036febe8125 /indra/llui/llpanel.h | |
parent | 54ab932884c386950f4f31b9ee63446053c03d59 (diff) |
MAINT-3555 crash in LLPanel::~LLPanel() on shutdown:
- memory leaks fixing;
Diffstat (limited to 'indra/llui/llpanel.h')
-rwxr-xr-x | indra/llui/llpanel.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/indra/llui/llpanel.h b/indra/llui/llpanel.h index e63b41f97c..17b9b91ba7 100755 --- a/indra/llui/llpanel.h +++ b/indra/llui/llpanel.h @@ -330,17 +330,16 @@ private: // local static instance for registering a particular panel class template<typename T> -class LLRegisterPanelClassWrapper -: public LLRegisterPanelClass + class LLPanelInjector { public: - // reigister with either the provided builder, or the generic templated builder - LLRegisterPanelClassWrapper(const std::string& tag); + // register with either the provided builder, or the generic templated builder + LLPanelInjector(const std::string& tag); }; template<typename T> -LLRegisterPanelClassWrapper<T>::LLRegisterPanelClassWrapper(const std::string& tag) + LLPanelInjector<T>::LLPanelInjector(const std::string& tag) { LLRegisterPanelClass::instance().addPanelClass(tag,&LLRegisterPanelClass::defaultPanelClassBuilder<T>); } |