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;
|
end;
|
||||||
|
|
||||||
if Assigned(valueClass) then
|
if Assigned(valueClass) then
|
||||||
values.Add(key, valueClass.Create(valueType, AStream));
|
values.Add(key, valueClass.Create(valueType, AStream, payloadSize));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Result := TX2LogDictionaryDetails.CreateOwned(values);
|
Result := TX2LogDictionaryDetails.CreateOwned(values);
|
||||||
|
values := nil;
|
||||||
finally
|
finally
|
||||||
FreeAndNil(values);
|
FreeAndNil(values);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user