aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-10-04 18:45:26 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-10-04 18:45:26 +0000
commitba81fb99da84a81a9f83ddc20edf9c1c825f0e6a (patch)
tree87d24733e86e58f04965b8a92d85077f91253e1d /epan/wslua
parent012a218a517bbc44dcd67334bcc88ade545b4603 (diff)
Misterious bug with cf_read() solved... had nothing to do with cf_read :)
the callback data for TextWindow buttons was ep_allocated! after cf_read() it was reused and so it was rewritten... fix that making it g_malloced instead. svn path=/trunk/; revision=19432
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/wslua_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/wslua_gui.c b/epan/wslua/wslua_gui.c
index 6529d8271c..c680f149fa 100644
--- a/epan/wslua/wslua_gui.c
+++ b/epan/wslua/wslua_gui.c
@@ -441,8 +441,8 @@ WSLUA_METHOD TextWindow_add_button(lua_State* L) {
lua_settop(L,4);
if (ops->add_button) {
- fbt = ep_alloc(sizeof(funnel_bt_t));
- cbd = ep_alloc(sizeof(wslua_bt_cb_t));
+ fbt = g_malloc(sizeof(funnel_bt_t));
+ cbd = g_malloc(sizeof(wslua_bt_cb_t));
fbt->tw = tw;
fbt->func = wslua_button_callback;