From 27985042841f1ea60156ed532e0b9f57e9c3b369 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 15 Jun 2015 15:52:22 +0000 Subject: MirLua: added options page git-svn-id: http://svn.miranda-ng.org/main/trunk@14179 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/src/mlua.cpp') diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp index a389e155f1..e67caf6272 100644 --- a/plugins/MirLua/src/mlua.cpp +++ b/plugins/MirLua/src/mlua.cpp @@ -1,6 +1,6 @@ #include "stdafx.h" -CMLua::CMLua() +CMLua::CMLua() : L(NULL) { L = luaL_newstate(); luaL_openlibs(L); @@ -24,7 +24,8 @@ CMLua::CMLua() CMLua::~CMLua() { - lua_close(L); + if(L) + lua_close(L); } void CMLua::AddPath(const char *path) -- cgit v1.2.3