--- deliantra/server/common/utils.C 2006/09/08 16:51:43 1.6 +++ deliantra/server/common/utils.C 2006/09/09 21:48:28 1.8 @@ -1,6 +1,6 @@ /* * static char *rcsid_utils_c = - * "$Id: utils.C,v 1.6 2006/09/08 16:51:43 root Exp $"; + * "$Id: utils.C,v 1.8 2006/09/09 21:48:28 root Exp $"; */ /* @@ -487,30 +487,31 @@ return; } -//TODO: overhead due to specifying size twice void * zero_initialised::operator new (size_t s) { -printf ("new(%d)\n", s);//D + //return calloc (1, s); return g_slice_alloc0 (s); } void * zero_initialised::operator new [] (size_t s) { -printf ("new[](%d)\n", s);//D + //return calloc (1, s); return g_slice_alloc0 (s); } void zero_initialised::operator delete (void *p, size_t s) { + //free (p); return; g_slice_free1 (s, p); } void zero_initialised::operator delete [] (void *p, size_t s) { + //free (p); return; g_slice_free1 (s, p); }