View Issue Details

IDProjectCategoryView StatusLast Update
0038003FPCPackagespublic2020-10-28 16:38
ReporterRoland Chastain Assigned ToMichael Van Canneyt  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.0.4 
Fixed in Version3.3.1 
Summary0038003: Small memory leak in any project using ptcGraph
DescriptionIf you compile any program using ptcGraph, and use heaptrc unit, you will see one unfreed memory block (48 bytes for FPC 64-bit, 28 bytes for 32-bit).
A user of the Lazarus forum has searched and found the origin of the memory leak. You can see the proposed modification here:
https://forum.lazarus.freepascal.org/index.php/topic,51934.msg382141.html#msg382141
Steps To ReproduceCompile any program using ptcGraph, and use heaptrc unit.
Additional InformationI reproduce here the proposed modification:

destructor TPTCWrapperThread.Destroy;
begin
  FSurfaceCriticalSection.free; // THIS WAS MISSING
  inherited;
end;
TagsNo tags attached.
Fixed in Revision47236
FPCOldBugId
FPCTarget3.2.2
Attached Files

Activities

Michael Van Canneyt

2020-10-28 15:13

administrator   ~0126605

Fixed, thanks for reporting !

Roland Chastain

2020-10-28 16:37

reporter   ~0126606

Thank you.

Issue History

Date Modified Username Field Change
2020-10-28 14:42 Roland Chastain New Issue
2020-10-28 15:13 Michael Van Canneyt Assigned To => Michael Van Canneyt
2020-10-28 15:13 Michael Van Canneyt Status new => resolved
2020-10-28 15:13 Michael Van Canneyt Resolution open => fixed
2020-10-28 15:13 Michael Van Canneyt Fixed in Version => 3.3.1
2020-10-28 15:13 Michael Van Canneyt Fixed in Revision => 47236
2020-10-28 15:13 Michael Van Canneyt FPCTarget => 3.2.2
2020-10-28 15:13 Michael Van Canneyt Note Added: 0126605
2020-10-28 16:37 Roland Chastain Note Added: 0126606
2020-10-28 16:38 Roland Chastain Status resolved => closed