Skip to content
Permalink
Browse files

several fixes to TSynLocker.DoneAndFreeMem use

  • Loading branch information...
Arnaud Bouchez
Arnaud Bouchez committed Jun 13, 2019
1 parent 09670f6 commit 41b2ee50a243b51a7d1908da9161d283c1d0d482
Showing with 4 additions and 4 deletions.
  1. +1 −1 SynBidirSock.pas
  2. +1 −1 SynCommons.pas
  3. +1 −1 SynTable.pas
  4. +1 −1 SynopseCommit.inc
@@ -2524,7 +2524,7 @@ constructor TWebCrtSocketProcess.Create(aSocket: TCrtSocket;
destructor TWebCrtSocketProcess.Destroy;
begin
inherited Destroy;
fSafePing.DoneAndFreeMem;
fSafePing.DoneAndFreeMem; // to be done lately to avoid GPF in above Destroy
end;

function TWebCrtSocketProcess.GetFrame(out Frame: TWebSocketFrame;

destructor TSynPersistentLock.Destroy;
begin
inherited Destroy;
fSafe^.DoneAndFreeMem;
inherited;
end;


@@ -12043,9 +12043,9 @@ constructor TBlockingProcess.Create(aTimeOutMs: integer);

destructor TBlockingProcess.Destroy;
begin
inherited Destroy;
if fOwnedSafe then
fSafe^.DoneAndFreeMem;
inherited Destroy;
end;

function TBlockingProcess.WaitFor: TBlockingEvent;
@@ -1 +1 @@
'1.18.5235'
'1.18.5236'

0 comments on commit 41b2ee5

Please sign in to comment.
You can’t perform that action at this time.