Index: tools/Resources.cpp |
diff --git a/tools/Resources.cpp b/tools/Resources.cpp |
index 62b3f9fd0dbaaed934b023a6028172346bbe7c53..ecbf88c17ae924eefe9b67ecc164c06ae7680c44 100644 |
--- a/tools/Resources.cpp |
+++ b/tools/Resources.cpp |
@@ -42,7 +42,7 @@ SkStreamAsset* GetResourceAsStream(const char* resource) { |
SkString resourcePath = GetResourcePath(resource); |
SkAutoTDelete<SkFILEStream> stream(new SkFILEStream(resourcePath.c_str())); |
if (stream->isValid()) { |
- return stream.detach(); |
+ return stream.release(); |
} else { |
SkDebugf("Resource %s not found.\n", resource); |
return nullptr; |
@@ -54,5 +54,5 @@ SkTypeface* GetResourceAsTypeface(const char* resource) { |
if (!stream) { |
return nullptr; |
} |
- return SkTypeface::CreateFromStream(stream.detach()); |
+ return SkTypeface::CreateFromStream(stream.release()); |
} |