diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2020-03-22 00:41:23 +0200 |
---|---|---|
committer | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2020-03-22 00:53:30 +0200 |
commit | ee70e8ce502093bd882a25db0e057993bab72d61 (patch) | |
tree | ca1a2fa283b6bd2518c74f586d7dcfc568ccc68d /audio/out/push.c | |
parent | c4cc48c83dd1404d5cfbdafd81ffbfe265be65d6 (diff) | |
download | mpv-ee70e8ce502093bd882a25db0e057993bab72d61.tar.bz2 mpv-ee70e8ce502093bd882a25db0e057993bab72d61.tar.xz |
js: make wait_event autofree
The VM could throw at pushnode and before mpv_free_node_contents, which
would have resulted in leaked content.
Now this case is handled without leaks.
Note: the lua code still leaks on such case, but mp_lua_PITA doesn't
have destructors like the JS autofree has, which, specifically here,
can do mpv_free_node_contents. So TODO: enhance the lua PITA code to
behave more similar to the JS autofree.
Diffstat (limited to 'audio/out/push.c')
0 files changed, 0 insertions, 0 deletions