diff --git a/src/auto4_lua.cpp b/src/auto4_lua.cpp index 370a791e3..8e4c73641 100644 --- a/src/auto4_lua.cpp +++ b/src/auto4_lua.cpp @@ -258,7 +258,7 @@ namespace { return 1; } - int FrameDestory(lua_State *L) { + int FrameDestroy(lua_State *L) { std::shared_ptr frame = check_VideoFrame(L); frame.~shared_ptr(); return 0; @@ -282,7 +282,7 @@ namespace { {"height", FrameHeight}, {"getPixel", FramePixel}, {"getPixelFormatted", FramePixelFormatted}, - {"__gc", FrameDestory}, + {"__gc", FrameDestroy}, {NULL, NULL} };