It is not safe to call vpx_codec_destroy if vpx_codec_dec_init failed, because the |decoder_| memory will be uninitialized. See the bug for more info. BUG=chromium:663293 Review-Url: https://codereview.webrtc.org/2541163007 Cr-Commit-Position: refs/heads/master@{#15381}