diff dwt/graphics/GC.d @ 334:c49e17d48b76

Fix problems at GC run at main()'s end.
author Frank Benoit <benoit@tionex.de>
date Wed, 18 Feb 2009 16:14:31 +0100
parents b3dbd786541a
children
line wrap: on
line diff
--- a/dwt/graphics/GC.d	Tue Feb 10 17:14:24 2009 +0100
+++ b/dwt/graphics/GC.d	Wed Feb 18 16:14:31 2009 +0100
@@ -4893,6 +4893,7 @@
 public static GC win32_new(Drawable drawable, GCData data) {
     GC gc = new GC();
     auto hDC = drawable.internal_new_GC(data);
+    gc.disposeChecking = false;
     gc.device = data.device;
     gc.init_(drawable, data, hDC);
     return gc;
@@ -4915,6 +4916,7 @@
  */
 public static GC win32_new(HDC hDC, GCData data) {
     GC gc = new GC();
+    gc.disposeChecking = false;
     gc.device = data.device;
     data.style |= DWT.LEFT_TO_RIGHT;
     if (OS.WIN32_VERSION >= OS.VERSION (4, 10)) {