changeset 41:f3c4bcb83a37

Add _dw_pool_drain() for Mac to avoid memory leak after dwcompat msleep() change.
author Brian Smith <brian@dbsoft.org>
date Thu, 19 Jan 2012 22:53:43 -0600
parents ecfb5c023f40
children 9bbda6e774ae
files cc.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cc.c	Thu Nov 24 21:49:57 2011 -0600
+++ b/cc.c	Thu Jan 19 22:53:43 2012 -0600
@@ -332,7 +332,10 @@
 			z++;
 		}
 		dw_mutex_unlock(hMtx);
-
+        
+#if defined(__MAC__) && !defined(GARBAGE_COLLECT)
+        _dw_pool_drain();
+#endif
 	}
 	display_destroy();
 }