[gnome-code-assistance] [backends/js] Store services to avoid them being GC'd
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/js] Store services to avoid them being GC'd
- Date: Sun, 11 Jan 2015 14:35:28 +0000 (UTC)
commit 970a6613740f3e8d32397dbbef3fd874d4758f09
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Jan 11 15:34:12 2015 +0100
[backends/js] Store services to avoid them being GC'd
.../gnome/codeassistance/transport_dbus.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/backends/jscommon/gnome/codeassistance/transport_dbus.js
b/backends/jscommon/gnome/codeassistance/transport_dbus.js
index 61da60d..72cb2d1 100644
--- a/backends/jscommon/gnome/codeassistance/transport_dbus.js
+++ b/backends/jscommon/gnome/codeassistance/transport_dbus.js
@@ -235,6 +235,7 @@ Server.prototype = {
this.apps = {};
this.nextid = 0;
+ this.services = {};
let path = '/org/gnome/CodeAssist/v1/' + service.language;
@@ -243,6 +244,8 @@ Server.prototype = {
if (s in service.prototype) {
let serv = new ServerServices[s](this);
serv.dbus.export(conn, path);
+
+ this.services[s] = serv;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]