mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Merge pull request #6752 from alalek:backport_6747
This commit is contained in:
@@ -2558,10 +2558,10 @@ template<typename _Tp, size_t fixed_size> inline void AutoBuffer<_Tp, fixed_size
|
||||
if(_size <= size)
|
||||
return;
|
||||
deallocate();
|
||||
size = _size;
|
||||
if(_size > fixed_size)
|
||||
{
|
||||
ptr = cv::allocate<_Tp>(_size);
|
||||
size = _size;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user