diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index 6a36ddbae3..5d68a36832 100644 --- a/modules/core/src/ocl.cpp +++ b/modules/core/src/ocl.cpp @@ -3957,6 +3957,7 @@ public: derived()._releaseBufferEntry(entry); } reservedEntries_.clear(); + currentReservedSize = 0; } };