Index: samplecode/SampleLua.cpp |
diff --git a/samplecode/SampleLua.cpp b/samplecode/SampleLua.cpp |
index 8865f1a1537a1ad05540f5868ead9ebec5beec55..5fc9ab0c78617c251e70975ce8240d7c4425ac6f 100644 |
--- a/samplecode/SampleLua.cpp |
+++ b/samplecode/SampleLua.cpp |
@@ -41,9 +41,7 @@ class LuaView : public SampleView { |
public: |
LuaView() : fLua(NULL) {} |
- virtual ~LuaView() { |
- SkDELETE(fLua); |
- } |
+ virtual ~LuaView() { delete fLua; } |
void setImageFilename(lua_State* L) { |
SkString str = GetResourcePath("mandrill_256.png"); |
@@ -59,7 +57,7 @@ public: |
lua_State* ensureLua() { |
if (NULL == fLua) { |
- fLua = SkNEW(SkLua); |
+ fLua = new SkLua; |
SkString str = GetResourcePath(LUA_FILENAME); |
SkData* data = SkData::NewFromFileName(str.c_str()); |