DescriptionFix scoped_ptr::Pass to not rely on undefined behavior
Invoking "other.release()" where other is of type RValue invokes undefined behavior, because the given pointer is actually of type scoped_ptr<C>. With the NaCl toolchain, this doesn't work as intended, and the pointed-to object gets destructed twice.
BUG=116317
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143150
Patch Set 1 #Patch Set 2 : add comments #Messages
Total messages: 11 (0 generated)
|