diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index 6a36ddbae..5d68a3683 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; } };