TBitBtn has a Memory Leak on Cocoa
Original Reporter info from Mantis: dbannon @davidbannon
-
Reporter name: David
Original Reporter info from Mantis: dbannon @davidbannon
- Reporter name: David
Description:
If you assign a bitmap to the glyph property of a bitbtn it leaks memory. OK if no glyph. Speedbutton OK.
Steps to reproduce:
Build attached demo, and run from command line to see heaptrc output. As Mac apps don't seem to send heaptrc output via lazlogger you need to do something like -
./project1.app/Contents/MacOS/project1
(open project1.app --args "--debug-log=/Users/dbannon/Pascal/MemLeak/log.log" no longer seems to get the heaptrc output - another issue ? )
Additional information:
Clear the TBitBtn glyph and the leak goes away.
This problem appears in both Lazarus 2.0.0 and 2.0.2
Mantis conversion info:
- Mantis ID: 35400
- OS: OSX
- OS Build: Sierra
- Platform: Mac
- Version: 2.0.2
- Fixed in revision: 61160 (#14eaeb1c)
- Monitored by: » @davidbannon (David)