1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-29 10:02:57 +03:00

Fix memory leak in fifo buffer handling

This commit is contained in:
Maxime Coste 2015-06-03 20:22:07 +01:00
parent f2b0409a9b
commit 64a3b0bd50

View File

@ -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.