Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: remoting/client/jni/chromoting_jni_instance.cc

Issue 2001813002: Invalidate ChromotingJniInstance's WeakPtr on network thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/jni/chromoting_jni_instance.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/jni/chromoting_jni_instance.cc
diff --git a/remoting/client/jni/chromoting_jni_instance.cc b/remoting/client/jni/chromoting_jni_instance.cc
index e67f9c375b8aca20ed0142c8e76a1a2009476834..e63e2b4c31c0a962dcc2b1593002cd8596db0544 100644
--- a/remoting/client/jni/chromoting_jni_instance.cc
+++ b/remoting/client/jni/chromoting_jni_instance.cc
@@ -124,6 +124,8 @@ void ChromotingJniInstance::Disconnect() {
signaling_.reset();
perf_tracker_.reset();
client_context_.reset();
+
+ weak_factory_.InvalidateWeakPtrs();
}
void ChromotingJniInstance::FetchThirdPartyToken(
« no previous file with comments | « remoting/client/jni/chromoting_jni_instance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698