Clean up RasterDecoderImpl on early exit

Copying the same pattern from GLES2DecoderImpl. If Initialize fails,
call Destroy directly instead of relying on the caller to clean up.

Bug: 847543
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: Id2827f3bfb4831bb49ca24b8b70a86a574eaea88
Reviewed-on: https://chromium-review.googlesource.com/1085893
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Commit-Queue: Jonathan Backer <backer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#564220}
1 file changed