TPageControl: setting Images to nil produces a sigsev [PATCH]
Original Reporter info from Mantis: luca @olivluca
-
Reporter name: Luca Olivetti
Original Reporter info from Mantis: luca @olivluca
- Reporter name: Luca Olivetti
Description:
If the images property of a tpagecontrol is assigned, setting it to nil produces a sigsev.
In my application this happens every time the form is destroyed, in the example project this doesn't happen, so I added a button to set images to nil.
Steps to reproduce:
Compile and run the attached project. Click on the button. See the SIGSEV.
Additional information:
Changing the Images property triggers the DoImageListChange method of TCustomTabControl (in customnotebook.inc).
With lazarus 1.8.x this was no problem, but now this method tries to access Images which is nil at this point, thus causing a sigsev.
The patch seems to fix the problem.