Skip to content

Commit

Permalink
Eliminate GC resource leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jld01 committed Aug 2, 2023
1 parent bb8ffa7 commit e069e97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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;
Expand Down Expand Up @@ -147,6 +148,7 @@ private int populateCombo() {
// 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
Expand Down

0 comments on commit e069e97

Please sign in to comment.