From e71fc0b1726f0ea8004634440f4ee829242faf49 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Wed, 29 Oct 2014 20:56:07 +0100 Subject: [PATCH] don't hold psi in local search scope in tests --- .../com/intellij/structuralsearch/impl/matcher/MatcherImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/MatcherImpl.java b/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/MatcherImpl.java index 7a166478d3c9..06a61b1da4fc 100644 --- a/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/MatcherImpl.java +++ b/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/MatcherImpl.java @@ -441,6 +441,8 @@ public class MatcherImpl { MalformedPatternException exception = new MalformedPatternException(); exception.initCause(e); throw exception; + } finally { + options.setScope(null); } return sink.getMatches();