Index: table.c =================================================================== --- table.c (revision 7845) +++ table.c (revision 8016) @@ -774,6 +774,10 @@ void AG_TableFreeCell(AG_Table *t, AG_TableCell *c) { + if (c->widget != NULL) { + AG_ObjectDetach(c->widget); + AG_ObjectDestroy(c->widget); + } if (c->surface >= 0) AG_WidgetUnmapSurface(t, c->surface); } @@ -1696,6 +1700,7 @@ c->fnTxt = NULL; c->selected = 0; c->surface = -1; + c->widget = NULL; } int