Index: gm/etc1bitmap.cpp |
diff --git a/gm/etc1bitmap.cpp b/gm/etc1bitmap.cpp |
index bb8ca6f406022a7ad0cc0947705cee30b25d0809..f61b514ecbe278fea094ac2ed421449f1f81855e 100644 |
--- a/gm/etc1bitmap.cpp |
+++ b/gm/etc1bitmap.cpp |
@@ -38,7 +38,7 @@ protected: |
SkString filename = SkOSPath::SkPathJoin( |
INHERITED::gResourcePath.c_str(), "mandrill_512.pkm"); |
- SkData *fileData = SkData::NewFromFileName(filename.c_str()); |
+ SkAutoTUnref<SkData> fileData(SkData::NewFromFileName(filename.c_str())); |
if (NULL == fileData) { |
SkDebugf("Could not open the file. Did you forget to set the resourcePath?\n"); |
return; |