Memleak in TStatusBar with GTK2
Original Reporter info from Mantis: Timm Thaler
-
Reporter name: Timm Thaler
Original Reporter info from Mantis: Timm Thaler
- Reporter name: Timm Thaler
Description:
If the panel text in a TStatusbar is updated with different content (e.g. timer, event counter...), the used program memory rises permanently.
Steps to reproduce:
put a TStatusBar with one Panel to a Form
put a Timer to that Form, set it to 10msec
update the statusbar every timer event with changing content
Inc(cykl);
If cykl >= 50 then cykl := 1;
sts_bar.Panels[0].Text := StringOfChar('I', cykl);
see the used memory in the Taskmanager rising.
Additional information:
This happens with GTK2 widgetset in Linux, but not with WinApi widgetset in Windows.
It seems only to happen if the new content is different.
Mantis conversion info:
- Mantis ID: 34951
- OS: Raspbian / other Linux
- OS Build: Stretch
- Build: r40963
- Platform: Raspberry Pi / ARM
- Version: 2.3 (SVN)
- Fixed in version: 2.1 (SVN)
- Fixed in revision: 60250 (#ec7a5c0c)
- Target version: 2.0