mirror of https://github.com/opencv/opencv.git
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-assignmentpull/3058/head
parent
3334b1437b
commit
efc1c39315
1 changed files with 9 additions and 6 deletions
Loading…
Reference in new issue