summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-06-18 10:30:49 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-06-18 10:30:49 +0800
commit6ce07c96045f595dc7f1dd9d2c01307df67136fa (patch)
tree4494a749aaf6a1d75152992b2c9ba10ec11cae7b
parent2e838808127c563d4baedcd20a939f826351a7f2 (diff)
downloadibus-6ce07c96045f595dc7f1dd9d2c01307df67136fa.tar.gz
ibus-6ce07c96045f595dc7f1dd9d2c01307df67136fa.tar.xz
ibus-6ce07c96045f595dc7f1dd9d2c01307df67136fa.zip
Destroy InputContext when connection lost.
-rw-r--r--ibusdaemon/inputcontext.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ibusdaemon/inputcontext.py b/ibusdaemon/inputcontext.py
index e7db89c..e99cda9 100644
--- a/ibusdaemon/inputcontext.py
+++ b/ibusdaemon/inputcontext.py
@@ -168,6 +168,7 @@ class InputContext (ibus.Object):
self._remove_engine_handlers ()
self._engine.destroy ()
self._engine = None
+ self.destroy ()
def _commit_string_cb (self, engine, text):
self.commit_string (text)