Index: src/utils/SkLua.cpp |
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp |
index d0b6a4b1ac27d3b665b512b873d4b26cbc4ff0eb..56e2b41a454e5f81b22c81be895e07155aa5f56a 100644 |
--- a/src/utils/SkLua.cpp |
+++ b/src/utils/SkLua.cpp |
@@ -1114,7 +1114,7 @@ |
static int lpaint_setColorFilter(lua_State* L) { |
SkPaint* paint = get_obj<SkPaint>(L, 1); |
- paint->setColorFilter(sk_ref_sp(get_ref<SkColorFilter>(L, 2))); |
+ paint->setColorFilter(get_ref<SkColorFilter>(L, 2)); |
return 0; |
} |