aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-25 17:55:04 +0100
committerMax Kellermann <max@duempel.org>2008-11-25 17:55:04 +0100
commitd85184256e9bfbcd6e6533b8c806876ede52f538 (patch)
tree66cc8482c87054bd861905c9dcbca0a3049abf05 /src
parent7918785c78021258131e28a7a534064bdbc85dca (diff)
downloadmpd-d85184256e9bfbcd6e6533b8c806876ede52f538.tar.gz
mpd-d85184256e9bfbcd6e6533b8c806876ede52f538.tar.xz
mpd-d85184256e9bfbcd6e6533b8c806876ede52f538.zip
main: destroy the save_state timer on exit
Make valgrind happier.
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 6d752f5a2..972aa32bb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -470,6 +470,8 @@ int main(int argc, char *argv[])
}
}
+ g_timer_destroy(save_state_timer);
+
write_state_file();
playerKill();
finishZeroconf();