diff options
Diffstat (limited to 'src/InotifySource.hxx')
-rw-r--r-- | src/InotifySource.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/InotifySource.hxx b/src/InotifySource.hxx index f6ddea966..e2ce9301e 100644 --- a/src/InotifySource.hxx +++ b/src/InotifySource.hxx @@ -22,7 +22,6 @@ #include "event/SocketMonitor.hxx" #include "util/FifoBuffer.hxx" -#include "Compiler.h" class Error; @@ -39,6 +38,10 @@ class InotifySource final : private SocketMonitor { mpd_inotify_callback_t callback, void *ctx, int fd); public: + ~InotifySource() { + Close(); + } + /** * Creates a new inotify source and registers it in the GLib main * loop. |