diff options
author | wm4 <wm4@nowhere> | 2014-10-19 05:46:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-19 05:51:37 +0200 |
commit | ff029cb4cfae6e9984821d5f9c9dd49c2d566f96 (patch) | |
tree | b1221d0b82c5a3684c8386eff56e50da43c9c495 /player/client.h | |
parent | 5548c75e5507da6a0f9fb6a45a07a5cc6edd9393 (diff) | |
download | mpv-ff029cb4cfae6e9984821d5f9c9dd49c2d566f96.tar.bz2 mpv-ff029cb4cfae6e9984821d5f9c9dd49c2d566f96.tar.xz |
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.
Diffstat (limited to 'player/client.h')
-rw-r--r-- | player/client.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <stdint.h> +#include <stdbool.h> #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 |