Exception may be rasied inside the body of a copying constructor after refcount has been increased, and beacause in the case of the exception destrcutor is never called what causes memory leak. This commit adds a workaround that calls the release() function before the exception is thrown outside the contructor.pull/9792/head
parent
d25ee8a273
commit
b638aa74d7
1 changed files with 22 additions and 12 deletions
Loading…
Reference in new issue