gfio: clear stale widget pointers on dialog destruction