Fixed deserializing dictionary details: size mismatch exception and valued incorrectly being freed
This commit is contained in:
parent
9571bb4f97
commit
7887a0ba68
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user