From b5d8c5a6b12d52e0f71c2fe97b3bd4c66ac0596e Mon Sep 17 00:00:00 2001 From: Karchnu Date: Mon, 13 Jul 2020 14:16:25 +0200 Subject: [PATCH] blah --- src/ipc/context.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ipc/context.cr b/src/ipc/context.cr index 1ed07e4..1b94a4a 100644 --- a/src/ipc/context.cr +++ b/src/ipc/context.cr @@ -2,7 +2,7 @@ class IPC::Context property base_timer : Int32 = LibIPC::INFTIM property timer : Int32 = LibIPC::INFTIM - getter context : LibIPC::Ctx + getter context : LibIPC::Ctx def initialize @context = LibIPC::Ctx.new @@ -142,6 +142,7 @@ class IPC::Context m = String.new r.error_message.to_slice raise Exception.new "cannot correctly close the connection: #{m}" end + LibIPC.ipc_ctx_free(self.pointer) @closed = true end