mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-07 00:05:53 +02:00
Eliminate GC resource leak
This commit is contained in:
parent
bb8ffa7b09
commit
e069e974e8
2 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
|
|||
Bundle-Name: %pluginName
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-SymbolicName: org.eclipse.cdt.dsf.gdb.ui;singleton:=true
|
||||
Bundle-Version: 2.8.100.qualifier
|
||||
Bundle-Version: 2.8.200.qualifier
|
||||
Bundle-Activator: org.eclipse.cdt.dsf.gdb.internal.ui.GdbUIPlugin
|
||||
Bundle-Localization: plugin
|
||||
Require-Bundle: org.eclipse.ui,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2011, 2014 Mentor Graphics and others.
|
||||
* Copyright (c) 2011, 2023 Mentor Graphics and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
|
@ -10,6 +10,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Vladimir Prus (Mentor Graphics) - initial API and implementation
|
||||
* John Dallaway - eliminate GC resource leak (#482)
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.dsf.gdb.internal.ui.osview;
|
||||
|
@ -147,6 +148,7 @@ public class ResourceClassContributionItem extends ContributionItem {
|
|||
// in new GDB version, no problem -- the combo will be resized when it's populated.
|
||||
width = gc.textExtent("Shared memory regions").x; //$NON-NLS-1$
|
||||
}
|
||||
gc.dispose();
|
||||
|
||||
// Because there's no way whatsoever to set the width
|
||||
// of the combobox list, only complete length, we just add
|
||||
|
|
Loading…
Add table
Reference in a new issue