| Index: src/utils/SkLua.cpp
|
| diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
|
| index 8ea9eee5fc14aee672f4f53c26bf1e8b23d0eedc..117cb8af838aea6349ad13151ad7e97cd049292e 100644
|
| --- a/src/utils/SkLua.cpp
|
| +++ b/src/utils/SkLua.cpp
|
| @@ -2076,8 +2076,7 @@ static int lsk_newTextBlob(lua_State* L) {
|
| box.setText(text, strlen(text), paint);
|
|
|
| SkScalar newBottom;
|
| - SkAutoTUnref<SkTextBlob> blob(box.snapshotTextBlob(&newBottom));
|
| - push_ref<SkTextBlob>(L, blob);
|
| + push_ref<SkTextBlob>(L, box.snapshotTextBlob(&newBottom));
|
| SkLua(L).pushScalar(newBottom);
|
| return 2;
|
| }
|
|
|