Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Ungureanu <therzok@gmail.com>2017-04-28 17:00:39 +0300
committerMarius Ungureanu <teromario@yahoo.com>2017-05-09 14:51:42 +0300
commited04996e22386b85dbdbe1a5a7df79ccd737920f (patch)
tree54e2011d277c14c2cd348ba4fd15564b6d094286 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor
parent11dd38d31dc97c0eadb51b01f24b0e1f776471b3 (diff)
[Core] Break circular reference in TextEditor.
The ExtensionContext had a weakref to the condition, but the condition was hard-referenced by the Editor itself. Break this chain.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs
index d00bcdf9df..643d2d9331 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs
@@ -962,6 +962,9 @@ namespace MonoDevelop.Ide.Editor
{
if (isDisposed)
return;
+
+ // Break fileTypeCondition circular event handling reference.
+ fileTypeCondition = null;
isDisposed = true;
DetachExtensionChain ();
FileNameChanged -= TextEditor_FileNameChanged;