ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/branches/udr/client/FBEvents.pas
(Generate patch)

Comparing ibx/branches/udr/client/FBEvents.pas (file contents):
Revision 381 by tony, Sat Jan 15 00:06:22 2022 UTC vs.
Revision 382 by tony, Sat Jan 15 15:23:11 2022 UTC

# Line 224 | Line 224 | begin
224    {calculate length of event parameter block, setting initial length to include version
225     and counts for each argument}
226  
227 <   if FEventBuffer <> nil then FreeAndNil(FEventBuffer);
228 <   if FResultBuffer <> nil then FreeAndNil(FResultBuffer);
227 >  if FEventBuffer <> nil then
228 >  begin
229 >    FreeMem( FEventBuffer);
230 >    FEventBuffer := nil;
231 >  end;
232 >  if FResultBuffer <> nil then
233 >  begin
234 >    FreeMem( FResultBuffer);
235 >    FResultBuffer := nil;
236 >  end;
237  
238    FEventBufferLen := 1;
239    for i := 0 to FEvents.Count - 1 do
# Line 242 | Line 250 | begin
250      IBAlloc(FResultBuffer,0,FEventBufferLen);
251      if FResultBuffer = nil then
252      begin
253 <      FreeAndNil(FEventBuffer);
253 >      FreeMem(FEventBuffer);
254 >      FEventBuffer := nil;
255        Exit;
256      end;
257      FillChar(FResultBuffer^,FEventBufferLen,0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines