Index: experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp |
=================================================================== |
--- experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp (revision 9962) |
+++ experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp (working copy) |
@@ -700,7 +700,9 @@ |
// free the unparsed stream, we don't need it. |
// the parsed one is locked as it contains the strings and keywords referenced in objects |
if (fUncompressedStream) { |
- realloc(fUncompressedStreamStart, fUncompressedStream - fUncompressedStreamStart); |
+ void* dummy = realloc(fUncompressedStreamStart, fUncompressedStream - fUncompressedStreamStart); |
+ SkASSERT(dummy == fUncompressedStreamStart); |
+ fUncompressedStreamStart = (unsigned char*)dummy; // suporess compiler warning |
} else { |
SkASSERT(false); |
} |