gtk2proc.inc, procedure DrawImageListIconOnWidget: it allocates Bitmap + DC. Pls add try-finally for Bitmap; and (not sure) try-finally for DC:
finally
ReleaseDC(HDC({%H-}PtrUInt(DestWidget)),DestDC);
end;
finally
Bitmap.Free;
end;Regards,
Alexey
