Index: src/utils/SkFrontBufferedStream.cpp |
diff --git a/src/utils/SkFrontBufferedStream.cpp b/src/utils/SkFrontBufferedStream.cpp |
index a0dbeb6a7a0db28d936b323368be5faa9493d5bc..2dfb8ab882654abd643fd3c06057d0694646df9e 100644 |
--- a/src/utils/SkFrontBufferedStream.cpp |
+++ b/src/utils/SkFrontBufferedStream.cpp |
@@ -147,7 +147,7 @@ size_t FrontBufferedStream::readDirectlyFromStream(char* dst, size_t size) { |
// If we have read past the end of the buffer, rewinding is no longer |
// supported, so we can go ahead and free the memory. |
if (bytesReadDirectly > 0) { |
- sk_free(fBuffer.detach()); |
+ sk_free(fBuffer.release()); |
} |
return bytesReadDirectly; |