mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
align singleton malloc
This commit is contained in:
parent
1c46034166
commit
12662e064b
@ -162,7 +162,7 @@ CV_EXPORTS void scalarToRawData(const cv::Scalar& s, void* buf, int type, int un
|
|||||||
|
|
||||||
//! Allocate all memory buffers which will not be freed, ease filtering memcheck issues
|
//! Allocate all memory buffers which will not be freed, ease filtering memcheck issues
|
||||||
template <typename T>
|
template <typename T>
|
||||||
CV_EXPORTS T* allocSingleton(size_t count) { return new T[count]; }
|
CV_EXPORTS T* allocSingleton(size_t count) { return fastMalloc(sizeof(T) * count); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// property implementation macros
|
// property implementation macros
|
||||||
|
Loading…
Reference in New Issue
Block a user