diff options
Diffstat (limited to 'src/InotifySource.hxx')
-rw-r--r-- | src/InotifySource.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/InotifySource.hxx b/src/InotifySource.hxx index f6ddea966..77c11093c 100644 --- a/src/InotifySource.hxx +++ b/src/InotifySource.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2013 The Music Player Daemon Project + * Copyright (C) 2003-2014 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -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. |