aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_gui.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-10-05 16:25:13 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-10-05 16:25:13 +0000
commit8dee75cf6892c6574fedc0970402d5c4a10b197d (patch)
tree40f10cecb754ffb0cb6b4ef9a6936774a85db8ad /epan/wslua/wslua_gui.c
parent60193f0ae7b15864f65c193a410d774ac20c531f (diff)
have the funnel client passing the destructors for btn data structures to the funnel.
Although useless in practice, it is better to implement it this way... the funnel mini gui might be used by other modules in the future. svn path=/trunk/; revision=19440
Diffstat (limited to 'epan/wslua/wslua_gui.c')
-rw-r--r--epan/wslua/wslua_gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/wslua/wslua_gui.c b/epan/wslua/wslua_gui.c
index c680f149fa..53b2fc0163 100644
--- a/epan/wslua/wslua_gui.c
+++ b/epan/wslua/wslua_gui.c
@@ -447,6 +447,8 @@ WSLUA_METHOD TextWindow_add_button(lua_State* L) {
fbt->tw = tw;
fbt->func = wslua_button_callback;
fbt->data = cbd;
+ fbt->free = g_free;
+ fbt->free_data = g_free;
cbd->L = L;
cbd->data_ref = luaL_ref(L, LUA_REGISTRYINDEX);