DescriptionFix possible use-after-free in WGC3D shared context map
Remove WGC3D from the map in Destroy() rather than ~WGC3DCBImpl(),
because removal from the multimap needs |host_|.
Otherwise it's possible that MaybeInitializeGL() and CreateContext()
fail and call Destroy(), which resets |host_|, and we already inserted
ourselves in the map.
BUG=325071
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238546
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|