summaryrefslogtreecommitdiffstats
path: root/common/encode_lavc.h
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2020-03-22 00:41:23 +0200
committerAvi Halachmi (:avih) <avihpit@yahoo.com>2020-03-22 00:53:30 +0200
commitee70e8ce502093bd882a25db0e057993bab72d61 (patch)
treeca1a2fa283b6bd2518c74f586d7dcfc568ccc68d /common/encode_lavc.h
parentc4cc48c83dd1404d5cfbdafd81ffbfe265be65d6 (diff)
downloadmpv-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 'common/encode_lavc.h')
0 files changed, 0 insertions, 0 deletions