From f0ce1d17fd019b05591569352178609f88bb5428 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 23 Oct 2015 22:38:57 +0000 Subject: MirLua: minor fix in m_database git-svn-id: http://svn.miranda-ng.org/main/trunk@15603 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_database.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/MirLua/src/m_database.cpp b/plugins/MirLua/src/m_database.cpp index bfbc986f55..29191403e7 100644 --- a/plugins/MirLua/src/m_database.cpp +++ b/plugins/MirLua/src/m_database.cpp @@ -334,7 +334,7 @@ static int lua_SettingIterator(lua_State *L) { lua_pushnil(L); mir_free(param->pszSettingName); - //mir_free(param); + mir_free(param); } return 1; @@ -342,8 +342,8 @@ static int lua_SettingIterator(lua_State *L) static int lua_AllSettings(lua_State *L) { - const char* szModule = luaL_checkstring(L, 1); - MCONTACT hContact = lua_tointeger(L, 2); + MCONTACT hContact = lua_tointeger(L, 1); + const char* szModule = luaL_checkstring(L, 2); enumDBSettingsParam* param = (enumDBSettingsParam*)mir_alloc(sizeof(enumDBSettingsParam)); param->count = 0; @@ -365,6 +365,8 @@ static int lua_AllSettings(lua_State *L) static int lua_EnumSettings(lua_State *L) { + ObsoleteMethod(L, "Use \"for x in db.AllSettings \" instead"); + LPCSTR szModule = luaL_checkstring(L, 1); MCONTACT hContact = lua_tointeger(L, 2); -- cgit v1.2.3