Index: src/utils/SkLua.cpp |
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp |
index b84ba0f5188e844c14d1c3805eb91f7f71f22d05..95ca5adc07389eed82a984a6f6f88d04b16df81a 100644 |
--- a/src/utils/SkLua.cpp |
+++ b/src/utils/SkLua.cpp |
@@ -1711,8 +1711,7 @@ static int limage_height(lua_State* L) { |
static int limage_newShader(lua_State* L) { |
SkShader::TileMode tmode = SkShader::kClamp_TileMode; |
const SkMatrix* localM = nullptr; |
- SkAutoTUnref<SkShader> shader(get_ref<SkImage>(L, 1)->newShader(tmode, tmode, localM)); |
- push_ref(L, shader.get()); |
+ push_ref(L, get_ref<SkImage>(L, 1)->makeShader(tmode, tmode, localM)); |
return 1; |
} |