diff --git a/xbmc/interfaces/legacy/Window.cpp b/xbmc/interfaces/legacy/Window.cpp index aae36312432b5..9367782ce0384 100644 --- a/xbmc/interfaces/legacy/Window.cpp +++ b/xbmc/interfaces/legacy/Window.cpp @@ -37,6 +37,8 @@ namespace XBMCAddon { namespace xbmcgui { + XbmcThreads::ThreadLocal InterceptorBase::upcallTls; + /** * Used in add/remove control. It only locks if it's given a * non-NULL CCriticalSection. It's given a NULL CCriticalSection diff --git a/xbmc/interfaces/legacy/WindowInterceptor.h b/xbmc/interfaces/legacy/WindowInterceptor.h index 636136ae1d637..263de363aa9bd 100644 --- a/xbmc/interfaces/legacy/WindowInterceptor.h +++ b/xbmc/interfaces/legacy/WindowInterceptor.h @@ -43,7 +43,8 @@ namespace XBMCAddon { protected: AddonClass::Ref window; - XbmcThreads::ThreadLocal upcallTls; + // This instance is in Window.cpp + static XbmcThreads::ThreadLocal upcallTls; InterceptorBase() : window(NULL) { upcallTls.set(NULL); }