SSR: prevent leaking of dialog with project

GitOrigin-RevId: b413591661d7aef4f15cc2fd9524bd77a3ec53ad
This commit is contained in:
Bas Leijdekkers
2019-06-14 20:05:09 +03:00
committed by intellij-monorepo-bot
parent 5fabfecb2d
commit aed780301a
@@ -185,6 +185,7 @@ public class StructuralSearchDialog extends DialogWrapper {
@Override
public void projectClosing(@NotNull Project project) {
close(CANCEL_EXIT_CODE);
ProjectManager.getInstance().removeProjectManagerListener(searchContext.getProject(), this);
}
});
}