crash on figure close when using dockable off and closerequestfcn
Reported by Clement DAVID (@davidcl)
BUG DESCRIPTION:
----------------
I designed a GUI with two figures, the main figure is not dockable and the second figure has a close callback. When closing the second figure, Scilab crash.
ERROR LOG:
----------
Crash
HOW TO REPRODUCE THE BUG:
-------------------------
main = figure("figure_name", "main figure", "dockable", "off");
second = figure("figure_name", "second", "closerequestfcn", "close(gcbo)");
// close the second figure
OTHER INFORMATION:
------------------