diff options
author | Silenio Quarti <silenio> | 2005-08-05 14:51:59 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2005-08-05 14:51:59 +0000 |
commit | 261b17413812aaba000e40e686c342d0296e361b (patch) | |
tree | 6ab06e0eda89407624ff891063d4b9f8f5fbfcf9 | |
parent | 6971b1fa36cb1fee9755512ea5aa63a0a4d5671e (diff) | |
download | eclipse.platform.swt-261b17413812aaba000e40e686c342d0296e361b.tar.gz eclipse.platform.swt-261b17413812aaba000e40e686c342d0296e361b.tar.xz eclipse.platform.swt-261b17413812aaba000e40e686c342d0296e361b.zip |
106058 - leaking brushes
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java | 2 |
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; } |