diff options
Diffstat (limited to 'src/ports/SkImageDecoder_CG.cpp')
-rw-r--r-- | src/ports/SkImageDecoder_CG.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ports/SkImageDecoder_CG.cpp b/src/ports/SkImageDecoder_CG.cpp index 81c6b37..4e2bcc9 100644 --- a/src/ports/SkImageDecoder_CG.cpp +++ b/src/ports/SkImageDecoder_CG.cpp @@ -171,10 +171,9 @@ bool SkImageEncoder_CG::onEncode(SkWStream* stream, const SkBitmap& bm, return false; } SkAutoTCallVProc<CGImage, CGImageRelease> agimage(image); - - CGImageDestinationAddImage(dst, image, NULL); - CGImageDestinationFinalize(dst); - return true; + + CGImageDestinationAddImage(dst, image, NULL); + return CGImageDestinationFinalize(dst); } SkImageEncoder* SkImageEncoder::Create(Type t) { |