mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-02-19 18:56:33 +01:00
* Free Translated resource strings, patch by Christoph. Fixes issue #41372
This commit is contained in:
parent
2ebb42c141
commit
7b088f9484
@ -402,6 +402,24 @@ begin
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure FinalizeResourceStringRefs;
|
||||
var
|
||||
i: integer;
|
||||
ptable: PResStrInitEntry;
|
||||
begin
|
||||
for i:=1 to ResStrInitTable^.Count do
|
||||
begin
|
||||
ptable:=ResStrInitTable^.Tables[i];
|
||||
while Assigned(ptable^.Addr) do
|
||||
begin
|
||||
AnsiString(ptable^.Addr^):='';
|
||||
Inc(ptable);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
{$endif FPC_HAS_RESSTRINITS}
|
||||
|
||||
Var
|
||||
@ -524,6 +542,9 @@ end;
|
||||
Initialization
|
||||
{ ResetResourceTables;}
|
||||
finalization
|
||||
{$ifdef FPC_HAS_RESSTRINITS}
|
||||
FinalizeResourceStringRefs;
|
||||
{$endif FPC_HAS_RESSTRINITS}
|
||||
FinalizeResourceTables;
|
||||
{$endif FPC_HAS_FEATURE_RESOURCES}
|
||||
end.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user