From b0cea11a74fbf77932c5884d28619481aa73a40c Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 15 Mar 2017 13:05:00 +0300 Subject: [PATCH] reduce life span to avoid memleaks --- .../openapi/externalSystem/test/ExternalSystemTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemTestCase.java b/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemTestCase.java index c4c42d9eff13..68f0a00e0f91 100644 --- a/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemTestCase.java +++ b/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemTestCase.java @@ -114,7 +114,7 @@ public abstract class ExternalSystemTestCase extends UsefulTestCase { List allowedRoots = new ArrayList<>(); collectAllowedRoots(allowedRoots); if (!allowedRoots.isEmpty()) { - VfsRootAccess.allowRootAccess(getTestRootDisposable(), ArrayUtil.toStringArray(allowedRoots)); + VfsRootAccess.allowRootAccess(myTestFixture.getTestRootDisposable(), ArrayUtil.toStringArray(allowedRoots)); } CompilerTestUtil.enableExternalCompiler();