Index: remoting/webapp/crd/js/host_session.js |
diff --git a/remoting/webapp/crd/js/host_session.js b/remoting/webapp/crd/js/host_session.js |
index 7fb84328835afdbf423c73d675c38600d087ac1d..fb268cd52d3b4bd3d906180ebc2bc9f9b44ec787 100644 |
--- a/remoting/webapp/crd/js/host_session.js |
+++ b/remoting/webapp/crd/js/host_session.js |
@@ -18,6 +18,7 @@ var remoting = remoting || {}; |
/** |
* @constructor |
+ * @implements {base.Disposable} |
*/ |
remoting.HostSession = function() { |
/** @type {remoting.It2MeHostFacade} @private */ |
@@ -39,6 +40,11 @@ remoting.HostSession.State = { |
INVALID_DOMAIN_ERROR: 7 |
}; |
+remoting.HostSession.prototype.dispose = function() { |
+ base.dispose(this.hostFacade_); |
+ this.hostFacade_ = null; |
+}; |
+ |
/** |
* @param {string} stateString The string representation of the host state. |
* @return {remoting.HostSession.State} The HostSession.State enum value |
@@ -50,7 +56,7 @@ remoting.HostSession.State.fromString = function(stateString) { |
return remoting.HostSession.State.UNKNOWN; |
} |
return remoting.HostSession.State[stateString]; |
-} |
+}; |
/** |
* Initiates a connection. |