From 64a3b0bd5028199cd4a98878606af39b00213f1c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 3 Jun 2015 20:22:07 +0100 Subject: [PATCH] Fix memory leak in fifo buffer handling --- src/buffer_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc index 6e84a4f1..ff05e781 100644 --- a/src/buffer_utils.cc +++ b/src/buffer_utils.cc @@ -108,7 +108,7 @@ Buffer* create_fifo_buffer(String name, int fd, bool scroll) watcher->close_fd(); buffer->run_hook_in_own_context("BufCloseFifo", ""); buffer->flags() &= ~Buffer::Flags::Fifo; - watcher->~FDWatcher(); + delete watcher; }; // capture a non static one to silence a warning.