summaryrefslogtreecommitdiff
path: root/src/buffer_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-06-03 20:22:07 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-06-03 20:22:26 +0100
commit64a3b0bd5028199cd4a98878606af39b00213f1c (patch)
tree78526d6f25a2a8c3d6bac828d7f15e21462d7fa8 /src/buffer_utils.cc
parentf2b0409a9be551ff2282fda17be20c3c8660e72f (diff)
Fix memory leak in fifo buffer handling
Diffstat (limited to 'src/buffer_utils.cc')
-rw-r--r--src/buffer_utils.cc2
1 files changed, 1 insertions, 1 deletions
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.