summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2002-05-02 19:12:07 +0000
committerSilenio Quarti <silenio>2002-05-02 19:12:07 +0000
commit5ad592591306fd3680ec78937fc1f7fae37c24e2 (patch)
treef2a194861e1300b6c52f882ffe90b29fd84d4160 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics
parentcdbd0fa0fe7557b729ae08b3fb2e20c60cd714f9 (diff)
downloadeclipse.platform.swt-5ad592591306fd3680ec78937fc1f7fae37c24e2.tar.gz
eclipse.platform.swt-5ad592591306fd3680ec78937fc1f7fae37c24e2.tar.xz
eclipse.platform.swt-5ad592591306fd3680ec78937fc1f7fae37c24e2.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
index 1768757ada..e8750b9f80 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
@@ -1336,6 +1336,7 @@ public FontMetrics getFontMetrics() {
fm.descent = OS.PANGO_PIXELS(OS.pango_font_metrics_get_descent(metrics));
fm.averageCharWidth = OS.PANGO_PIXELS(OS.pango_font_metrics_get_approximate_char_width(metrics));
fm.height = fm.ascent + fm.descent;
+ OS.pango_font_metrics_unref(metrics);
return fm;
}