Same problem compiled under Ubuntu 9.04 32bit or 64bit.
All you have to do is start a new default application, drop TVirtualStringTree or TVirtualDrawTree component on form, build/run app and then
try to close app normally (not Stop within Lazarus).
GDB gives me this info:
TGtkWidgetSet.DeleteObject GdiObject=B706B500 gdiBrush is still used. DCCount=2
DC: B6F886B0 nil
[TGtkWidgetSet.Destroy] WARNING: There are 10 unreleased DCs, a detailed dump follows:
[TGtkWidgetSet.Destroy] DCs: B6F88BF0 B6F88AA0 B6F88950 B6F88800 B6F886B0 B6F88560 B6F88410
[TGtkWidgetSet.Destroy] WARNING: There are 433 unreleased GDIObjects, a detailed dump follows:
[TGtkWidgetSet.Destroy]*stopped,reason="signal-received",signal-name="SIGSEGV",signal-meaning="Segmentation fault",thread-id="1",frame={addr="0x080c3d27",func="DELETEOBJECT",args=[{name="GDIOBJECT",value="-1227321472"}],file="./include/winapi.inc",fullname="/usr/lib/lazarus/lcl/include/winapi.inc",line="176"}