Index: ppapi/proxy/ppb_video_decoder_proxy.cc |
diff --git a/ppapi/proxy/ppb_video_decoder_proxy.cc b/ppapi/proxy/ppb_video_decoder_proxy.cc |
index 496646ebbc04240ed54e65e05ae35731a2f36eda..f6eabd433d6947106d7b9bd49671f01ada80a250 100644 |
--- a/ppapi/proxy/ppb_video_decoder_proxy.cc |
+++ b/ppapi/proxy/ppb_video_decoder_proxy.cc |
@@ -61,6 +61,8 @@ VideoDecoder::VideoDecoder(const HostResource& decoder) |
} |
VideoDecoder::~VideoDecoder() { |
+ FlushCommandBuffer(); |
+ PPB_VideoDecoder_Shared::Destroy(); |
} |
int32_t VideoDecoder::Decode( |