Fix memory leak by y-or-n-p-with-timeout with GUI (Bug#9830).
commitba24cea25940796868dc0d1a6752f9279613b3d7
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 31 Oct 2011 03:08:54 +0000 (31 12:08 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 31 Oct 2011 03:08:54 +0000 (31 12:08 +0900)
tree010b295d0f58a0640cf44d30c0a951f8f58d9af3
parentfa2ec41ffd2cace14f37f5d18d986b410cb038a1
Fix memory leak by y-or-n-p-with-timeout with GUI (Bug#9830).

* xmenu.c (cleanup_widget_value_tree): New function.
(xmenu_show, xdialog_show): Use it in record_unwind_protect instead of
calling free_menubar_widget_value_tree directly (Bug#9830).
src/ChangeLog
src/xmenu.c