commit | 4495d5ff20e5a4923d708fa335371f0c8e9b2752 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Wed Aug 21 19:40:56 2013 -0400 |
committer | Leon Scroggins III <scroggo@google.com> | Wed Aug 21 19:40:56 2013 -0400 |
tree | 6526456da54182557d1f40da7e8db53aa5dd1998 | |
parent | 1d7cf348cbce51229ec67233f9a45089b115e52a [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 Change-Id: I3fbc7ac507ce11134565ebe50bd6be95e276b8e4