DescriptionFix video capture bug in a utility function, GetPin, and how it was being used.
This function could set an outgoing pointer to an already-released COM object, and then (correctly) return an error.
At the call sites though, the return value was not being checked, but instead the pointer was checked.
The worst part (and this is really the bug) about this was that if the pointer was valid on return, we would always call Release() on it, and that caused us to attempt to release an already-released object.
BUG=354027
TBR=mcasas
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260467
Patch Set 1 #Patch Set 2 : Change GetPin to just return the object since the return value wasn't being used #Messages
Total messages: 7 (0 generated)
|