commit | ad63d21d7f3c8fcaaf344d190b6e222ccf203548 | [log] [tgz] |
---|---|---|
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Aug 27 20:42:22 2013 +0000 |
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Aug 27 20:42:22 2013 +0000 |
tree | e6b8193ee3a2c7183edd5abdd63c99e32ce6f335 | |
parent | 03339fc25ce601870f1cfdcba51d91a67480ee64 [diff] |
Only destroy huffman if build succeeded. The earlier code assumed that if jpeg_create_huffman_index succeeded but jpeg_build_huffman_index failed that the index would still need to be destroyed. This is not the case. Only call jpeg_destroy_huffman_index if both succeeded. BUG=http://b.corp.google.com/issue?id=10263847 Review URL: https://codereview.chromium.org/22859042 git-svn-id: http://skia.googlecode.com/svn/trunk/src@10954 2bbb7eff-a529-9590-31e7-b0007b416f81