From 48855787a1a5744edf0e2629f12220d66726eb38 Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Sat, 17 Feb 2024 01:43:09 +0100 Subject: [PATCH] lua: Fix FrameDestroy function name --- src/auto4_lua.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} };