Fix memory leak in SaveToDisk.

Fix a memory leak in SaveToDisk by getting rid of the helper function
and moving the access to the raw pixels inline. This allows the
intermediate CFData object to be correctly refcounted.

BUG=685987
TEST=none, test passes

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