From 6a6d66486d3326457260f8d1e4b9937d9396c7c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 25 Sep 2019 22:15:38 +0200 Subject: [PATCH] ibusManager: Cancel the preload engines timeout on clear This is created when preloading but never cancelled if ibus disappears https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/743 --- js/misc/ibusManager.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/misc/ibusManager.js b/js/misc/ibusManager.js index 55e2fd97b..e43f88c7c 100644 --- a/js/misc/ibusManager.js +++ b/js/misc/ibusManager.js @@ -77,6 +77,11 @@ var IBusManager = class { this._cancellable = null; } + if (this._preloadEnginesId) { + GLib.source_remove(this._preloadEnginesId); + this._preloadEnginesId = 0; + } + if (this._panelService) this._panelService.destroy();