Commits

Roman Dawydkin committed a655d9b

Don't dispose bold font explicitely.

Comments (0)

Files changed (1)

src/ru/ezsk/ldapshell/LdapWindow.java

 	Text input;
 	Tree tree;
 	private Font boldFont;
-	private FontRegistry fontRegistry;
 	TabFolder tabFolder;
 
 	// ============================================================ Constructors
 		shell.setSize(800, 600);
 		shell.setText("LDAP Shell");
 
-		fontRegistry = JFaceResources.getFontRegistry();
+		final FontRegistry fontRegistry = JFaceResources.getFontRegistry();
 		boldFont = fontRegistry.getBold(JFaceResources.DEFAULT_FONT);
 	}
 
 			}
 			ldapDirectory = null;
 		}
-		if (boldFont != null) {
-			boldFont.dispose();
-			boldFont = null;
-		}
 	}
 
 	protected MenuManager createMenuManager() {