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);