Improve source/lib/LibMemory.h

This commit is contained in:
jfmcarreira committed 2014-04-05 14:32:52 +01:00
1 parent 7dd02189a1
commit 27bc26465a
1 file changed
+2 -2
+2 -2
View File
@@ -83,9 +83,9 @@ static inline Void xFreeMem( Void *mem )
}
template<typename T>
Int getMem1D( T **array1D, int dim0 )
Int getMem1D( T **array1D, Int dim0 )
{
if( ( *array1D = ( T* )mem_calloc( dim0, sizeof(T) ) ) == NULL )
if( ( *array1D = ( T* )xCallocMem( dim0, sizeof(T) ) ) == NULL )
return 0;
return ( sizeof(T*) + dim0 * sizeof(T) );