1
0

Fixed a warning on closing invalid plugins.

This commit is contained in:
madmaxoft 2013-08-20 20:42:43 +02:00
parent 40cb30b6a5
commit 61b968601a

View File

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