From bdd6b078f29791c3966740d5a6f7cb2ee96c3cc9 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 1 Jul 2008 16:53:00 +0200 Subject: [PATCH] titlebar: ref widget on get() Signed-off-by: Julien Danjou --- titlebar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/titlebar.c b/titlebar.c index 33792203..1886c104 100644 --- a/titlebar.c +++ b/titlebar.c @@ -386,6 +386,8 @@ luaA_titlebar_widget_get(lua_State *L) for(witer = (*tb)->widgets; witer; witer = witer->next) { luaA_widget_userdata_new(L, witer->widget); + /* ref again for the list */ + widget_ref(&witer->widget); lua_setfield(L, -2, witer->widget->name); }