From ff029cb4cfae6e9984821d5f9c9dd49c2d566f96 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 19 Oct 2014 05:46:16 +0200 Subject: lua: strictly free memory on errors Thanks to the recently introduced mp_lua_PITA(), this is "simple" now. It fixes leaks on Lua errors. The hack to avoid stack overflows manually isn't needed anymore, and the Lua error handler will take care of this. --- player/client.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'player/client.h') diff --git a/player/client.h b/player/client.h index 0cb4fff43f..db248e0cef 100644 --- a/player/client.h +++ b/player/client.h @@ -2,6 +2,7 @@ #define MP_CLIENT_H_ #include +#include #include "libmpv/client.h" @@ -25,4 +26,7 @@ struct mpv_handle *mp_new_client(struct mp_client_api *clients, const char *name struct mp_log *mp_client_get_log(struct mpv_handle *ctx); struct MPContext *mp_client_get_core(struct mpv_handle *ctx); +// m_option.c +void *node_get_alloc(struct mpv_node *node); + #endif -- cgit v1.2.3