Fix stack-use-after-scope in png_codec.

PngWriteStructDestroyer accesses info_ptr, so
info_ptr must have a wider lifetime scope. Otherwise,
the behavior of the problem is undefined.

The issue is found by AddressSanitizer with use-after-scope check enabled.

BUG=649897

Review-Url: https://codereview.chromium.org/2576823002
Cr-Commit-Position: refs/heads/master@{#438954}
1 file changed