mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
efc1c39315
A self-assignment leads to a call of release() with refcount being 2. In the release() method, refcount is decremented and then successfully checked for being 1. As a consequence, the underlying data is released. To prevent this, we test for a self-assignment |
||
---|---|---|
.. | ||
doc | ||
include/opencv2/core | ||
perf | ||
src | ||
test | ||
CMakeLists.txt |