From 419e281a1eba4ea8129dcebf2daf611f98700ba8 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Mon, 10 Nov 2014 06:04:45 +0100 Subject: [PATCH] CLuaMenuChangeObserver::changeNotify: Fix segfault in item type 'chooser' Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/02137ca987a5812b9c01889b24619b756a759929 Author: Michael Liebmann Date: 2014-11-10 (Mon, 10 Nov 2014) --- src/gui/luainstance.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gui/luainstance.cpp b/src/gui/luainstance.cpp index eb829cb24..a9f883b6f 100644 --- a/src/gui/luainstance.cpp +++ b/src/gui/luainstance.cpp @@ -1018,7 +1018,6 @@ bool CLuaMenuChangeObserver::changeNotify(lua_State *L, const std::string &luaAc lua_pushstring(L, optionValue); lua_pcall(L, 2 /* two args */, 1 /* one result */, 0); double res = lua_isnumber(L, -1) ? lua_tonumber(L, -1) : 0; - lua_pop(L, 2); return (((int)res == menu_return::RETURN_REPAINT) || ((int)res == menu_return::RETURN_EXIT_REPAINT)); }