• PhilLab's avatar
    Fixed self-assignment in cv::Ptr::operator = · efc1c393
    PhilLab authored
    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
    efc1c393
Name
Last commit
Last update
..
doc Loading commit data...
include/opencv2/core Loading commit data...
perf Loading commit data...
src Loading commit data...
test Loading commit data...
CMakeLists.txt Loading commit data...