DescriptionFix scoped_refptr assignment operator in the case of having it as a member.
If a class holds a reference to itself in scoped_refptr, assigning
to it a new value leads to calling Release while in destructor.
R=levin@chromium.org
TEST=RefCountedUnitTest.ScopedRefPtrToSelf
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116480
Patch Set 1 #
Total comments: 1
Patch Set 2 : Refactored as joth suggests #
Messages
Total messages: 8 (0 generated)
|