]> source.dussan.org Git - tigervnc.git/commitdiff
Run listener destructors before terminating 750/head
authorPeter Åstrand (astrand) <astrand@cendio.se>
Tue, 25 Sep 2018 11:51:55 +0000 (13:51 +0200)
committerPeter Åstrand (astrand) <astrand@cendio.se>
Tue, 23 Oct 2018 11:17:49 +0000 (13:17 +0200)
Must be done in order to remove UNIX sockets etc.

unix/x0vncserver/x0vncserver.cxx

index c08572be7b956a7794090a7a082b4f60613eacf3..d0d4be8645e8541e32f10586389d391363133c17 100644 (file)
@@ -439,6 +439,13 @@ int main(int argc, char** argv)
 
   TXWindow::handleXEvents(dpy);
 
+  // Run listener destructors; remove UNIX sockets etc
+  for (std::list<SocketListener*>::iterator i = listeners.begin();
+       i != listeners.end();
+       i++) {
+    delete *i;
+  }
+
   vlog.info("Terminated");
   return 0;
 }