1
0
mirror of synced 2024-11-08 22:29:16 +00:00

Fixed deserializing dictionary details: size mismatch exception and valued incorrectly being freed

This commit is contained in:
Mark van Renswoude 2017-01-09 14:48:35 +01:00
parent 9571bb4f97
commit 7887a0ba68

View File

@ -682,10 +682,11 @@ begin
end;
if Assigned(valueClass) then
values.Add(key, valueClass.Create(valueType, AStream));
values.Add(key, valueClass.Create(valueType, AStream, payloadSize));
end;
Result := TX2LogDictionaryDetails.CreateOwned(values);
values := nil;
finally
FreeAndNil(values);
end;