|
@@ -431,8 +431,7 @@ begin
|
|
if Result=Nil then
|
|
if Result=Nil then
|
|
begin
|
|
begin
|
|
// At some point we could cache this.
|
|
// At some point we could cache this.
|
|
- GetMem(Result,SizeOf(TMonitorData));
|
|
|
|
- Result^:=Default(TMonitorData);
|
|
|
|
|
|
+ New(Result);
|
|
Result^.Init;
|
|
Result^.Init;
|
|
SetMonitorData(aObject,Result);
|
|
SetMonitorData(aObject,Result);
|
|
end;
|
|
end;
|