mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-06 14:11:48 +01:00
* Avoid double freeing of frames with zero size as it creates a problem with heaptrc unit
git-svn-id: trunk@17271 -
This commit is contained in:
parent
66258fb0b8
commit
c22c58b3a5
@ -2773,7 +2773,11 @@ var
|
||||
begin
|
||||
for i:=0 to frame_size-1 do
|
||||
dispose(frames[i],done);
|
||||
if assigned(frames) then
|
||||
begin
|
||||
freemem(frames,sizeof(pointer)*Frame_size);
|
||||
frames:=nil;
|
||||
end;
|
||||
frame_count:=0;
|
||||
frame_size:=0;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user