1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Bug 573996: dispose of fonts created in the new project wizard

Change-Id: I3ca9d37ac6bda563284cb21a3e3e164abc2c63d3
This commit is contained in:
Jonah Graham 2021-06-03 20:53:08 -04:00
parent 50dcf3dbfa
commit 074acd9ea2
3 changed files with 23 additions and 3 deletions

View file

@ -3,7 +3,7 @@ Automatic-Module-Name: org.eclipse.tools.templates.ui
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.tools.templates.ui;singleton:=true
Bundle-Version: 1.2.100.qualifier
Bundle-Version: 1.2.200.qualifier
Bundle-Activator: org.eclipse.tools.templates.ui.internal.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2016 QNX Software Systems and others.
* Copyright (c) 2016, 2021 QNX Software Systems and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@ -156,4 +156,13 @@ public class TemplateSelectionPage extends WizardPage {
return super.getNextPage();
}
@Override
public void dispose() {
if (templateTable != null) {
templateTable.dispose();
templateTable = null;
}
super.dispose();
}
}

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2016 QNX Software Systems and others.
* Copyright (c) 2016, 2021 QNX Software Systems and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@ -190,4 +190,15 @@ public class TemplateTable implements Listener {
}
}
public void dispose() {
if (fontDefault != null) {
fontDefault.dispose();
fontDefault = null;
}
if (fontBold != null) {
fontBold.dispose();
fontBold = null;
}
}
}