1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 367473 - Rename refactoring without dialog leaks memory.

This commit is contained in:
Sergey Prigogin 2011-12-25 11:15:52 -08:00
parent 7559df0558
commit 227294f49a

View file

@ -200,7 +200,11 @@ public class RenameSupport {
processor.getSaveMode())) {
return DialogResult.OK;
}
return dialogSkipped[0] ? DialogResult.SKIPPED : DialogResult.CANCELED;
if (dialogSkipped[0]) {
// If the dialog was not shown, it is our responsibility to close it.
wizard.getContainer().getShell().close();
return DialogResult.SKIPPED;
}
} finally {
processor.unlockIndex();
}