lua: Fix FrameDestroy function name

This commit is contained in:
arch1t3cht 2024-02-17 01:43:09 +01:00
parent e483c5e48f
commit 48855787a1

View file

@ -258,7 +258,7 @@ namespace {
return 1;
}
int FrameDestory(lua_State *L) {
int FrameDestroy(lua_State *L) {
std::shared_ptr<VideoFrame> frame = check_VideoFrame(L);
frame.~shared_ptr<VideoFrame>();
return 0;
@ -282,7 +282,7 @@ namespace {
{"height", FrameHeight},
{"getPixel", FramePixel},
{"getPixelFormatted", FramePixelFormatted},
{"__gc", FrameDestory},
{"__gc", FrameDestroy},
{NULL, NULL}
};