[patch] after revision 53250 a TMainMenu couldn't be deleted (Access violation)
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
After revision 53250 (my own fix ;) - bug report #30806 (closed)), a TMainMenu couldn't be deleted from form.
The reason is, if a TMainMenu is deleted in TMenu.Destroy the TMenu.Items are freed. So in TMenu.DestroyHandle the Items.DestroyHandle gives this access violation.
The added patch fixes it (tested on Windows 7 32bit Lazarus, Linux Mint KDE GTK2 64bit Lazarus).
Steps to reproduce:
- add a TMainMenu on form
- remove that TMainMenu
Mantis conversion info:
- Mantis ID: 30882
- Build: 53301
- Version: 1.7 (SVN)
- Fixed in version: 1.6.2
- Fixed in revision: r53306 (#e0a1a0b0)
- Target version: 1.6.2