Fix some memory leaks (issue #641)

This commit is contained in:
o9000
2017-04-30 20:49:08 +02:00
parent 6df4eb4bee
commit 380f260027
2 changed files with 44 additions and 40 deletions

View File

@@ -652,6 +652,7 @@ void cleanup()
cleanup_server();
cleanup_timeout();
if (server.display)
XCloseDisplay(server.display);
server.display = NULL;