Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for dyloaded libs getting unloaded to early on app exit

  • Loading branch information...
commit 39734940200bc59f630f694912b940bfe374dcfa 1 parent c94cdcb
Jim Carroll authored Memphiz committed
View
1  xbmc/Application.cpp
@@ -3135,7 +3135,6 @@ bool CApplication::Cleanup()
CAddonMgr::Get().DeInit();
CLog::Log(LOGNOTICE, "unload sections");
- CSectionLoader::UnloadAll();
#ifdef HAS_PERFORMANCE_SAMPLE
CLog::Log(LOGNOTICE, "performance statistics");
View
4 xbmc/SectionLoader.cpp
@@ -40,7 +40,9 @@ CSectionLoader::CSectionLoader(void)
{}
CSectionLoader::~CSectionLoader(void)
-{}
+{
+ UnloadAll();
+}
bool CSectionLoader::IsLoaded(const CStdString& strSection)
{
View
5 xbmc/SectionLoader.h
@@ -55,13 +55,16 @@ class CSectionLoader
static LibraryLoader* LoadDLL(const CStdString& strSection, bool bDelayUnload=true, bool bLoadSymbols=false);
static void UnloadDLL(const CStdString& strSection);
static void UnloadDelayed();
- static void UnloadAll();
protected:
std::vector<CSection> m_vecLoadedSections;
typedef std::vector<CSection>::iterator ivecLoadedSections;
std::vector<CDll> m_vecLoadedDLLs;
CCriticalSection m_critSection;
+
+private:
+ void UnloadAll();
};
XBMC_GLOBAL_REF(CSectionLoader,g_sectionLoader);
+#define g_sectionLoader XBMC_GLOBAL_USE(CSectionLoader)
Please sign in to comment.
Something went wrong with that request. Please try again.