[gnome-characters] SearchProvider: fix unbalanced hold()
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters] SearchProvider: fix unbalanced hold()
- Date: Wed, 4 Mar 2015 02:55:02 +0000 (UTC)
commit 032721b5e83829b2c9e378ea391365149bfd6189
Author: Giovanni Campagna <scampa giovanni gmail com>
Date: Tue Mar 3 02:00:34 2015 -0800
SearchProvider: fix unbalanced hold()
Each query call holds the app alive until the query done, so make
sure that is matched with a release(), otherwise the app never
dies.
https://bugzilla.gnome.org/show_bug.cgi?id=745508
src/searchProvider.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/searchProvider.js b/src/searchProvider.js
index 5a40c30..90346e7 100644
--- a/src/searchProvider.js
+++ b/src/searchProvider.js
@@ -65,6 +65,8 @@ const SearchProvider = new Lang.Class({
log("Failed to search by keywords: " + e);
}
invocation.return_value(new GLib.Variant('(as)', [characters]));
+
+ this._app.release();
}));
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]