mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
memleak
This commit is contained in:
+2
-2
@@ -125,6 +125,7 @@ public class DefaultHighlightVisitor implements HighlightVisitor, DumbAware {
|
||||
List<Annotator> annotators = cachedAnnotators.get(element.getLanguage());
|
||||
if (annotators.isEmpty()) return;
|
||||
final boolean dumb = myDumbService.isDumb();
|
||||
annotationHolder.setSession(holder.getAnnotationSession());
|
||||
|
||||
if (!JobUtil.invokeConcurrentlyUnderMyProgress(annotators, new Processor<Annotator>() {
|
||||
public boolean process(Annotator annotator) {
|
||||
@@ -132,8 +133,6 @@ public class DefaultHighlightVisitor implements HighlightVisitor, DumbAware {
|
||||
return true;
|
||||
}
|
||||
|
||||
annotationHolder.setSession(holder.getAnnotationSession());
|
||||
|
||||
annotator.annotate(element, annotationHolder);
|
||||
return true;
|
||||
}
|
||||
@@ -145,6 +144,7 @@ public class DefaultHighlightVisitor implements HighlightVisitor, DumbAware {
|
||||
holder.add(HighlightInfo.fromAnnotation(annotation));
|
||||
}
|
||||
annotationHolder.clear();
|
||||
annotationHolder.setSession(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user