View Issue Details

IDProjectCategoryView StatusLast Update
0002617JEDI VCL00 JVCL Componentspublic2005-02-11 03:10
ReporteranonymousAssigned Torobert_marquardt 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.00 
Summary0002617: Memory Leak in Constructor of TJvgListBox
DescriptionIn the constructor the private FWallpaper is created two times:
Line 225 is correct, in line 237 the FWallPaper is assigned to a new Bitmap Object. So the component produce a memory leak, because the the pointer of the bitmap-object from line 225 get lost and the memory of the object is still allocated, but without any refrence.

<JvgListBox.pos>
...
On Line 225: FWallpaper := TBitmap.Create;
...
On Line 237: FWallpaper := TBitmap.Create;
...
Additional InformationVersion 3.00

Best Regards
Mario Rasser

In case of questions
contact: m.rasser@deltaz.com
TagsNo tags attached.

Activities

anonymous

2005-02-10 03:13

viewer   ~0006447

Sorry Line 236 produces the leak.(mra)

robert_marquardt

2005-02-11 03:10

developer   ~0006452

Fixed as proposed (deleted second Create).

Issue History

Date Modified Username Field Change
2005-02-10 03:11 anonymous New Issue
2005-02-10 03:13 anonymous Note Added: 0006447
2005-02-11 03:09 robert_marquardt Status new => assigned
2005-02-11 03:09 robert_marquardt Assigned To => robert_marquardt
2005-02-11 03:10 robert_marquardt Status assigned => resolved
2005-02-11 03:10 robert_marquardt Resolution open => fixed
2005-02-11 03:10 robert_marquardt Note Added: 0006452