GNOME Bugzilla – Bug 323592
Reset menus in sheet menu causes random text
Last modified: 2006-01-02 19:53:11 UTC
Please describe the problem: When the reset menus item is chosen in the sheet menu, random text like 'H' or 'P+[ ackson' is inserted instead of the removed entries, and Dia complains. Not unlikely to cause memory corruption. Steps to reproduce: 1. Remove your ~/.dia directory 2. Open a new diagram 3. Select a few sheets from the 'Sheets->Other Sheets' menu 4. Select 'Reset menu' from the 'Sheets' menu Actual results: A warning dialog comes up saying no sheet named [arbitrary string]. The same string becomes the only 'extra' sheet. Expected results: All 'extra' sheets should be removed. Does this happen every time? Yes. Other information: May be affecting color selection too.
2006-01-02 Hans Breuer <hans@breuer.org> * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.