aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkFrontBufferedStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/SkFrontBufferedStream.cpp')
-rw-r--r--src/utils/SkFrontBufferedStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkFrontBufferedStream.cpp b/src/utils/SkFrontBufferedStream.cpp
index a0dbeb6a7a..2dfb8ab882 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;