Unitialised variables and memory leak
Original Reporter info from Mantis: >8<
-
Reporter name: Bug Import
Original Reporter info from Mantis: >8<
- Reporter name: Bug Import
Description:
-
In TGtkObject.InitStockItems the function CreateBrushIndirect is called. logbrush.lbStyle is set to bs_null , but logbrush.lbColor is not set and is therefor unitialised. lbColor should be set because it is used in CreateBrushIndirect in a call to GetGDIolorRef
-
TGtkObject.FillScreenFont, memory leak
XFreeFontNames(theFonts) should be added. -
TGtkObject.SelectClipRgn.
The first lines of this routine is:
if not isValidDc(DC) then
Result := Error;
if Result <> Error then
This should be something like:
Error := 0
if not IsValidDc(DC) then
Result := Error;
if Result <> Error then
Additional information:
Imported information
--------------------
Name: Jeroen van Iddekinge
Mail: iddekingej (at) lycos.com
Mantis conversion info:
- Mantis ID: 86