From 0222c01dc8754fe35854620749f219477acafd9d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 09:22:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Stop=20double-freeing=20the=20co?= =?UTF-8?q?nnection=20packet=20handler=20at=20exit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unit finalization already frees the handler table; freeing the shared handler again from the datamodule corrupted the heap on shutdown. --- Client/UdmNetwork.pas | 1 - 1 file changed, 1 deletion(-) diff --git a/Client/UdmNetwork.pas b/Client/UdmNetwork.pas index 565c8d4..e6777ec 100644 --- a/Client/UdmNetwork.pas +++ b/Client/UdmNetwork.pas @@ -98,7 +98,6 @@ procedure TdmNetwork.DataModuleDestroy(Sender: TObject); begin FreeAndNil(FSendQueue); FreeAndNil(FReceiveQueue); - FreeAndNil(PacketHandlers[$02]); end; procedure TdmNetwork.TCPClientConnect(aSocket: TLSocket);