aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Morten Kvarving <cptspiff@gmail.com>2014-08-27 23:18:09 +0200
committerRainer Hochecker <fernetmenta@online.de>2015-03-03 09:17:03 +0100
commit08e84b7cf155511b6194994e3f2b75d5f2c37cfd (patch)
tree3f2cf83e73ad89f5e93cb2fe4a9a10cfcbe8a9c4
parent72617fe44c1ef5f020e3093bcfbb8e121b281657 (diff)
fixed: don't load new copy of dll in LoadDll()
-rw-r--r--xbmc/addons/AddonDll.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/addons/AddonDll.h b/xbmc/addons/AddonDll.h
index 6e1a2cb075..210157b5bd 100644
--- a/xbmc/addons/AddonDll.h
+++ b/xbmc/addons/AddonDll.h
@@ -158,6 +158,9 @@ AddonPtr CAddonDll<TheDll, TheStruct, TheProps>::Clone() const
template<class TheDll, typename TheStruct, typename TheProps>
bool CAddonDll<TheDll, TheStruct, TheProps>::LoadDll()
{
+ if (m_pDll)
+ return true;
+
std::string strFileName;
if (!m_bIsChild)
{