diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-06-20 12:17:42 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-06-20 12:17:59 -0400 |
commit | 9f0158bef8032723965c0f2d6bd242bfefac7d03 (patch) | |
tree | 19de438308b19c119bbd8855ab73a882e4160bc4 | |
parent | 151ef65b13f5de0541270de79370a5f60d3b090d (diff) | |
download | eclipse.platform.swt-9f0158bef8032723965c0f2d6bd242bfefac7d03.tar.gz eclipse.platform.swt-9f0158bef8032723965c0f2d6bd242bfefac7d03.tar.xz eclipse.platform.swt-9f0158bef8032723965c0f2d6bd242bfefac7d03.zip |
Bug 113342 - Disposing a font still in use by a GC causes crashes
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java | 1 |
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 6c45c0f812..74b744ca15 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 @@ -3212,6 +3212,7 @@ public void setBackgroundPattern(Pattern pattern) { } static void setCairoFont(int /*long*/ cairo, Font font) { + if (font == null || font.isDisposed()) return; setCairoFont(cairo, font.handle); } |