diff options
author | Tor Norbye <tnorbye@google.com> | 2013-08-13 12:13:58 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2013-08-13 12:13:58 -0700 |
commit | 64efd6ae489fe89e97a659999c87e1e41eea8e79 (patch) | |
tree | 15d305407c51bf425817443de82cd9480060da67 /plugins/svn4idea/src/org/jetbrains/idea | |
parent | d1129abbe4dc0ce9bbad9118a35a85dbebc8758f (diff) | |
download | idea-64efd6ae489fe89e97a659999c87e1e41eea8e79.tar.gz |
Snapshot 7e2655e04684ed009ba5dfe0caa809c5cabc6157 from master branch of git://git.jetbrains.org/idea/community.git
Change-Id: If6dc05707bd358454ab040203ee7a2b56c701f35
Diffstat (limited to 'plugins/svn4idea/src/org/jetbrains/idea')
-rw-r--r-- | plugins/svn4idea/src/org/jetbrains/idea/svn/SvnConfiguration.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/svn4idea/src/org/jetbrains/idea/svn/SvnConfiguration.java b/plugins/svn4idea/src/org/jetbrains/idea/svn/SvnConfiguration.java index 9549ce5b506f..8c881ce8eef4 100644 --- a/plugins/svn4idea/src/org/jetbrains/idea/svn/SvnConfiguration.java +++ b/plugins/svn4idea/src/org/jetbrains/idea/svn/SvnConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 JetBrains s.r.o. + * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package org.jetbrains.idea.svn; +import com.intellij.openapi.Disposable; import com.intellij.openapi.application.Application; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.components.*; @@ -360,6 +361,12 @@ public class SvnConfiguration implements PersistentStateComponent<Element> { if (myAuthManager == null) { // reloaded when configuration directory changes myAuthManager = new SvnAuthenticationManager(svnVcs.getProject(), new File(getConfigurationDirectory())); + Disposer.register(svnVcs.getProject(), new Disposable() { + @Override + public void dispose() { + myAuthManager = null; + } + }); getInteractiveManager(svnVcs); // to init myAuthManager.setAuthenticationProvider(new SvnAuthenticationProvider(svnVcs, myInteractiveProvider, RUNTIME_AUTH_CACHE)); |