From 5fea43e9b07b966fe023105bfd9a224bfbb00e7b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 10 Dec 2016 15:50:53 +0300 Subject: - ability to pass a button's text to a toolbar button; - common code moved into the core --- plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua') diff --git a/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp b/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp index 2fcbfe320a..d2a35adc46 100644 --- a/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp +++ b/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp @@ -59,8 +59,8 @@ static int lua_ModifyButton(lua_State *L) INT_PTR res = Srmm_ModifyButton(bbb); lua_pushinteger(L, res); - mir_free(bbb->pszModuleName); - mir_free(bbb->pwszTooltip); + mir_free((void*)bbb->pszModuleName); + mir_free((void*)bbb->pwszTooltip); mir_free(bbb); return 1; -- cgit v1.2.3