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 f1f7ed216d6e73ceb62914228796431652cfa0c6..c05329b3ef23068c491c956c8978cb9cda50c26d 100644 |
--- a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc |
+++ b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc |
@@ -206,11 +206,10 @@ int32_t PPB_VideoDecoder_Impl::Reset(scoped_refptr<TrackedCallback> callback) { |
} |
void PPB_VideoDecoder_Impl::Destroy() { |
- if (!platform_video_decoder_.get()) |
- return; |
+ if (platform_video_decoder_) |
+ platform_video_decoder_.release()->Destroy(); |
FlushCommandBuffer(); |
- platform_video_decoder_.release()->Destroy(); |
::ppapi::PPB_VideoDecoder_Shared::Destroy(); |
ppp_videodecoder_ = NULL; |
danakj
2013/03/27 22:56:04
I'll move this above too. "Clean up the subclass b
|
} |