View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001499 | JEDI VCL | 00 JVCL Components | public | 2004-03-19 10:07 | 2004-03-19 10:53 |
Reporter | CORE | Assigned To | user72 | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001499: Memory leaks in TJvGroupHeader | ||||
Description | While investigating my application with MemCheck I intercepted memory leak in TJvGroupHeader. TPen and TBrush are allocated in constructor, but they aren't destroyed. I use the JVCL 2.10 so I fixed it in this version, I include the fixes in the additional information field. | ||||
Additional Information | Fix: Add this line to the public section of TJvGroupHeaderOptions and TJvGroupHeader: destructor Destroy; override; and this code: destructor TJvGroupHeader.Destroy; begin if Assigned(FBevelOptions) then FBevelOptions.Free; if Assigned(FLabelOptions) then FLabelOptions.Free; inherited; end; destructor TJvGroupHeaderOptions.Destroy; begin if Assigned(FPen) then FPen.Free; if Assigned(FBrush) then FBrush.Free; inherited; end; | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2004-03-19 10:07 | CORE | New Issue | |
2004-03-19 10:53 |
|
Status | new => resolved |
2004-03-19 10:53 |
|
Resolution | open => fixed |
2004-03-19 10:53 |
|
Assigned To | => user72 |
2004-03-19 10:53 |
|
Note Added: 0003395 |