IDEMPIERE-3653 1007767 Possible memory leak. Fixed memory leak. / integrate patch from hengsin
This commit is contained in:
parent
2d01ed4995
commit
47043bd0f5
|
@ -247,8 +247,19 @@ public class WindowContainer extends AbstractUIPart implements EventListener<Eve
|
|||
*/
|
||||
public Tab insertBefore(Tab refTab, Component comp, String title, boolean closeable, boolean enable, DecorateInfo decorateInfo)
|
||||
{
|
||||
@SuppressWarnings("serial")
|
||||
final Menupopup popupClose = new Menupopup();
|
||||
final Tab tab = new Tab() {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 2387473442130217806L;
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
super.close();
|
||||
popupClose.detach();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPageDetached(Page page) {
|
||||
super.onPageDetached(page);
|
||||
|
@ -335,7 +346,6 @@ public class WindowContainer extends AbstractUIPart implements EventListener<Eve
|
|||
setSelectedTab(tab);
|
||||
}
|
||||
|
||||
Menupopup popupClose = new Menupopup();
|
||||
Menuitem mi;
|
||||
if(tab.getIndex()!=0){
|
||||
mi = new Menuitem(Msg.getMsg(Env.getCtx(), "Close"));
|
||||
|
|
Loading…
Reference in New Issue