From 261b17413812aaba000e40e686c342d0296e361b Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Fri, 5 Aug 2005 14:51:59 +0000 Subject: 106058 - leaking brushes --- .../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit