DescriptionLet WeakPtrFactory operations fail once its dtor is called
We had a weird bug (crbug.com/127534) where the task was
posted and executed even after WeakPtrFactory has been deleted.
It turns out that someone was posting a task AFTER its detor was
called while executing destructor, and bots (including valgrind)
couldn't catch this because the memory stays valid until the
hosting object is deleted. This CL is to catch such case early by
resetting the ptr_.
BUG=none
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137963
Patch Set 1 #Patch Set 2 : . #
Total comments: 4
Patch Set 3 : style fix, NULL only if !ndebug || dcheck_always_on #Patch Set 4 : sync #Patch Set 5 : enable for release #
Total comments: 1
Patch Set 6 : . #Messages
Total messages: 12 (0 generated)
|