Fixed a warning on closing invalid plugins.

master
madmaxoft 2013-08-20 20:42:43 +02:00
parent 40cb30b6a5
commit 61b968601a
1 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,10 @@ cPluginLua::cPluginLua(const AString & a_PluginDirectory) :
cPluginLua::~cPluginLua()
{
cCSLock Lock(m_CriticalSection);
if (m_LuaState.IsValid())
{
m_LuaState.Close();
}
}