summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2005-08-05 14:51:59 +0000
committerSilenio Quarti <silenio>2005-08-05 14:51:59 +0000
commit261b17413812aaba000e40e686c342d0296e361b (patch)
tree6ab06e0eda89407624ff891063d4b9f8f5fbfcf9
parent6971b1fa36cb1fee9755512ea5aa63a0a4d5671e (diff)
downloadeclipse.platform.swt-261b17413812aaba000e40e686c342d0296e361b.tar.gz
eclipse.platform.swt-261b17413812aaba000e40e686c342d0296e361b.tar.xz
eclipse.platform.swt-261b17413812aaba000e40e686c342d0296e361b.zip
106058 - leaking brushes
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
index b09795343b..a903479c78 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
@@ -1787,6 +1787,7 @@ public void drawString (String string, int x, int y, boolean isTransparent) {
}
Gdip.Graphics_DrawString(data.gdipGraphics, buffer, length, font, pt, format, brush);
Gdip.StringFormat_delete(format);
+ destroyGdipBrush(brush);
Gdip.Font_delete(font);
return;
}
@@ -1937,6 +1938,7 @@ public void drawText (String string, int x, int y, int flags) {
}
Gdip.Graphics_DrawString(data.gdipGraphics, buffer, length, font, pt, format, brush);
Gdip.StringFormat_delete(format);
+ destroyGdipBrush(brush);
Gdip.Font_delete(font);
return;
}