Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: webkit/plugins/ppapi/ppb_video_decoder_impl.cc

Issue 7467037: Made Destroy() followup more aggressive to test for races. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/ppapi/ppb_video_decoder_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
index ebde7edd8436de1b31bc3947ac6042aa55aebb9b..849e5b8961cefad59a78e1d1d09a41d23c9fdce4 100644
--- a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
+++ b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
@@ -176,6 +176,8 @@ void PPB_VideoDecoder_Impl::Destroy() {
if (!platform_video_decoder_)
return;
platform_video_decoder_->Destroy();
+ platform_video_decoder_ = NULL;
+ ppp_videodecoder_ = NULL;
}
void PPB_VideoDecoder_Impl::ProvidePictureBuffers(

Powered by Google App Engine
This is Rietveld 408576698