mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 01:29:08 +02:00
Avoid memory leak for InstrWriter field in powerpc TAssembler descendants
git-svn-id: trunk@34402 -
This commit is contained in:
parent
7eea450a52
commit
c327a07414
@ -401,6 +401,8 @@ unit agppcgas;
|
||||
constructor TPPCGNUAssembler.create(info: pasminfo; smart: boolean);
|
||||
begin
|
||||
inherited;
|
||||
if assigned(InstrWriter) then
|
||||
InstrWriter.free;
|
||||
InstrWriter := TPPCInstrWriter.create(self);
|
||||
end;
|
||||
|
||||
@ -441,6 +443,8 @@ unit agppcgas;
|
||||
constructor TPPCAppleGNUAssembler.create(info: pasminfo; smart: boolean);
|
||||
begin
|
||||
inherited;
|
||||
if assigned(InstrWriter) then
|
||||
InstrWriter.free;
|
||||
InstrWriter := TPPCInstrWriter.create(self);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user