summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ();