Commit 8bb8f8dc authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #6752 from alalek:backport_6747

parents 54f190cb c3dc7266
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment