diff options
Diffstat (limited to 'player/lua.c')
-rw-r--r-- | player/lua.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/lua.c b/player/lua.c index e76dc46fca..62f42baea1 100644 --- a/player/lua.c +++ b/player/lua.c @@ -1079,6 +1079,7 @@ static int script_readdir(lua_State *L) lua_pushstring(L, name); // list index name lua_settable(L, -3); // list } + closedir(dir); talloc_free(fullpath); return 1; } @@ -1331,6 +1332,7 @@ static void add_functions(struct script_ctx *ctx) } const struct mp_scripting mp_scripting_lua = { + .name = "lua script", .file_ext = "lua", .load = load_lua, }; |