From 46a03b1f4c6e930f31ae3c807a9810d2528890cc Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 16 Apr 2015 15:37:31 -0300 Subject: [PATCH] Fix SharedPtr usage in SkiaSystem::loadSurface() --- src/she/skia/skia_system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/she/skia/skia_system.h b/src/she/skia/skia_system.h index 2dd4f2de3..d436b1575 100644 --- a/src/she/skia/skia_system.h +++ b/src/she/skia/skia_system.h @@ -57,7 +57,7 @@ public: Surface* loadSurface(const char* filename) override { base::FileHandle fp(base::open_file_with_exception(filename, "rb")); - SkAutoTDelete stream(SkNEW_ARGS(SkFILEStream, (fp, SkFILEStream::kCallerRetains_Ownership))); + SkAutoTDelete stream(SkNEW_ARGS(SkFILEStream, (fp.get(), SkFILEStream::kCallerRetains_Ownership))); SkAutoTDelete decoder(SkImageDecoder::Factory(stream)); decoder->setRequireUnpremultipliedColors(true);