diff dmd/OutBuffer.d @ 178:e3afd1303184

Many small bugs fixed Made all classes derive from TObject to detect memory leaks (functionality is disabled for now) Began work on overriding backend memory allocations (to avoid memory leaks)
author korDen
date Sun, 17 Oct 2010 07:42:00 +0400
parents 94b6033c07f3
children a4c9de8e39b3
line wrap: on
line diff
--- a/dmd/OutBuffer.d	Sun Oct 10 10:38:55 2010 +0400
+++ b/dmd/OutBuffer.d	Sun Oct 17 07:42:00 2010 +0400
@@ -10,7 +10,9 @@
 import core.memory;
 import core.stdc.stdlib;
 
-class OutBuffer
+import dmd.TObject;
+
+class OutBuffer : TObject
 {
     ubyte* data;
     uint offset;
@@ -18,6 +20,7 @@
 
     this()
 	{
+		register();
 		// do nothing
 	}