diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-07-14 11:44:00 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-07-14 11:44:00 +0000 |
commit | d6c3f8a49c8d4d679bc6dd55e9776bdd03c8c092 (patch) | |
tree | 3e2279f83d4d607ec74883ca472a6a7fefb43505 | |
parent | a5983f7d5999e6488e4b21fb17fa1d7702ecfb03 (diff) |
MirLua: fixed memleak
git-svn-id: http://svn.miranda-ng.org/main/trunk@14558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/MirLua/src/m_popup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_popup.cpp b/plugins/MirLua/src/m_popup.cpp index c41fe4c467..961d34492d 100644 --- a/plugins/MirLua/src/m_popup.cpp +++ b/plugins/MirLua/src/m_popup.cpp @@ -6,12 +6,12 @@ static POPUPDATAT* MakePopupData(lua_State *L) lua_pushstring(L, "ContactName");
lua_gettable(L, -2);
- mir_tstrcpy(ppd->lptzContactName, mir_utf8decodeT(lua_tostring(L, -1)));
+ mir_tstrcpy(ppd->lptzContactName, ptrT(mir_utf8decodeT(lua_tostring(L, -1))));
lua_pop(L, 1);
lua_pushstring(L, "Text");
lua_gettable(L, -2);
- mir_tstrcpy(ppd->lptzText, mir_utf8decodeT(luaL_checkstring(L, -1)));
+ mir_tstrcpy(ppd->lptzText, ptrT(mir_utf8decodeT(luaL_checkstring(L, -1))));
lua_pop(L, 1);
lua_pushstring(L, "hContact");
|