summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-04-04 15:52:53 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-04-04 15:52:53 +0200
commit3a2b4265d7c095c39e89887de4d92f0dd7da6c7e (patch)
treeac1debed182addeeeaa2ed44c6e1238123112bf2
parentd6be5d8b24ad75503e6903dbd3ff084c992b53ed (diff)
downloadpianobar-windows-3a2b4265d7c095c39e89887de4d92f0dd7da6c7e.tar.gz
pianobar-windows-3a2b4265d7c095c39e89887de4d92f0dd7da6c7e.tar.bz2
pianobar-windows-3a2b4265d7c095c39e89887de4d92f0dd7da6c7e.zip
Forgot to close fifo...
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 270e00f..93fa317 100644
--- a/src/main.c
+++ b/src/main.c
@@ -272,11 +272,14 @@ int main (int argc, char **argv) {
}
}
+ /* destroy everything (including the world...) */
if (player.url != NULL) {
free (player.url);
pthread_join (playerThread, NULL);
}
- /* destroy everything (including the world...) */
+ if (polls[1].fd != -1) {
+ close (polls[1].fd);
+ }
PianoDestroy (&ph);
WardrobeDestroy (&wh);
curl_global_cleanup ();