DescriptionFix failure exits from JPEG onBuildTileIndex.
The setjmp exited without deleting the SkJPEGImageIndex, and
another exit condition deleted the huffman index even though
it had not been created yet. Create member functions on
SkJPEGImageIndex to make the jpeg calls so it can keep track
of what has been created, and avoid destroying anything else.
Remove unnecessary lines to set values to their default values.
Move all SkJPEGImageIndex code entirely inside #ifdef ANDROID
blocks, since no piece of it is used except by ANDROID only
code.
BUG=skia:1471
R=djsollen@google.com, mtklein@google.com
Committed: https://code.google.com/p/skia/source/detail?r=10628
Patch Set 1 #Patch Set 2 : #
Total comments: 4
Patch Set 3 : Use const for unchanging variable. #Patch Set 4 : Set SkJPEGImageIndex state before calling jpeg functions. #
Total comments: 1
Messages
Total messages: 9 (0 generated)
|