diff dmd/OutBuffer.d @ 175:94b6033c07f3

get rid of globals malloc -> GC.malloc
author korDen
date Sun, 10 Oct 2010 03:48:06 +0400
parents e28b18c23469
children e3afd1303184
line wrap: on
line diff
--- a/dmd/OutBuffer.d	Sun Oct 10 03:47:23 2010 +0400
+++ b/dmd/OutBuffer.d	Sun Oct 10 03:48:06 2010 +0400
@@ -292,7 +292,7 @@
     string toChars()
 	{
 	   char[] s = getString();
-	   char* copy = cast(char*)malloc(s.length);
+	   char* copy = cast(char*)GC.malloc(s.length);
 	   memcpy(copy, s.ptr, s.length);
 	   return assumeUnique(copy[0..s.length]);