Mercurial > projects > dwt-linux
diff dwt/graphics/Device.d @ 312:17757a168f51
Fix potential seg fault
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 01:35:19 +0200 |
parents | c0d810de7093 |
children | 4bffbf81e2d6 |
line wrap: on
line diff
--- a/dwt/graphics/Device.d Sun Aug 24 20:57:41 2008 +0200 +++ b/dwt/graphics/Device.d Mon Sep 08 01:35:19 2008 +0200 @@ -698,9 +698,7 @@ Device dev = cast(Device)user_data; if (dev.warningLevel is 0) { if (DEBUG || dev.debugging) { - foreach( msg; (new Exception ("")).info ){ - Stderr.formatln( "trc {}", msg ); - } + ExceptionPrintStackTrace(new Exception ("")); } OS.g_log_default_handler (log_domain, log_level, message, user_data); }