gfio: clear stale widget pointers on dialog destruction
authorStephen M. Cameron <stephenmcameron@gmail.com>
Tue, 20 Mar 2012 06:10:47 +0000 (07:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Mar 2012 06:12:51 +0000 (07:12 +0100)
commita8baa347275409b9cbeacc830ab2fdf669034e93
tree49991155e1452c288cfd8ac3cb6a50b25488950c
parent8f9e46ab2ce4bfcdb9932e9bf322978474b21502
gfio: clear stale widget pointers on dialog destruction

gopt_widgets and gopt_g_widgets arrays need to be cleared when
the job editing dialog widget tree is destroyed, otherwise you
get a crash or weird behavior if you attempt to edit a job more
than once.

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
goptions.c