mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove delegate instead of adding to autorelease pool
This commit is contained in:
@@ -147,6 +147,8 @@ public class MacFileChooserDialogImpl implements PathChooserDialog {
|
||||
}
|
||||
}
|
||||
finally {
|
||||
invoke(contextInfo, "setDelegate:", ID.NIL);
|
||||
Foundation.cfRelease(self);
|
||||
Foundation.cfRelease(contextInfo);
|
||||
JDK7WindowReorderingWorkaround.enableReordering();
|
||||
}
|
||||
@@ -339,7 +341,6 @@ public class MacFileChooserDialogImpl implements PathChooserDialog {
|
||||
}
|
||||
|
||||
final ID delegate = invoke(Foundation.getObjcClass("NSOpenPanelDelegate_"), "new");
|
||||
invoke(delegate, "autorelease");
|
||||
ourImplMap.put(delegate, impl);
|
||||
|
||||
final ID select = toSelect == null ? null : Foundation.nsString(toSelect);
|
||||
|
||||
Reference in New Issue
Block a user