mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid spurious project leak detection in tests, related to editor
This commit is contained in:
@@ -883,6 +883,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
|
||||
isReleased = true;
|
||||
clearSettingsCache();
|
||||
mySizeAdjustmentStrategy.cancelAllRequests();
|
||||
|
||||
myFoldingModel.dispose();
|
||||
mySoftWrapModel.release();
|
||||
|
||||
+4
@@ -103,6 +103,10 @@ class EditorSizeAdjustmentStrategy {
|
||||
scheduleSizeUpdate(editor);
|
||||
return result;
|
||||
}
|
||||
|
||||
void cancelAllRequests() {
|
||||
myAlarm.cancelAllRequests();
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes old timings.
|
||||
|
||||
Reference in New Issue
Block a user