* ensure that current_settings.pmessage is reset when doing a replay and when loading the current message state from the token stream

This commit is contained in:
Sven/Sarah Barth 2024-12-30 19:42:41 +01:00
parent 5ec9386d27
commit 3ba27d3160

View File

@ -3721,6 +3721,9 @@ type
{ install buffer }
replaytokenbuf:=buf;
{ ensure that existing message state records won't be freed }
current_settings.pmessage:=nil;
{ flushpendingswitchesstate should have been called }
if assigned(pendingstate.nextmessagerecord) then
internalerror(2024122901);
@ -3863,7 +3866,8 @@ type
end;
ST_LOADMESSAGES:
begin
{ free pending messages }
{ free current and pending messages }
FreeLocalVerbosity(current_settings.pmessage);
FreeLocalVerbosity(pendingstate.nextmessagerecord);
{ the message settings are stored from newest to oldest
change for the whole stack, so we only want to apply