about summary refs log tree commit diff
path: root/kcc.py
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@vulturis.eu>2014-01-18 09:51:17 +0100
committerPaweł Jastrzębski <pawelj@vulturis.eu>2014-01-18 09:51:17 +0100
commit562dad02fa5a85a5e829633b73aeedcc41c1535e (patch)
tree1f611b9f7e26abb0b13f6e3c162802b9c998e238 /kcc.py
parentVarious multi-os tweaks (diff)
downloadkcc-562dad02fa5a85a5e829633b73aeedcc41c1535e.tar.gz
kcc-562dad02fa5a85a5e829633b73aeedcc41c1535e.tar.bz2
kcc-562dad02fa5a85a5e829633b73aeedcc41c1535e.zip
Miscellaneous GUI tweaks
Diffstat (limited to 'kcc.py')
-rw-r--r--kcc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/kcc.py b/kcc.py
index 95f927e..727d075 100644
--- a/kcc.py
+++ b/kcc.py
@@ -99,6 +99,11 @@ class QApplicationMessaging(QtWidgets.QApplication):
             self._server.newConnection.connect(self.handleMessage)
             self._server.listen(self._key)
 
+    def __del__(self):
+        if self._memory.isAttached():
+            self._memory.detach()
+            self._server.close()
+
     def isRunning(self):
         return self._running