mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
dvdnav: fix minor memory leak
This was usually handled at the end of the switch statement, so if something returns from the function before that, the event has to be freed explicitly.
This commit is contained in:
parent
b5fe3e9a82
commit
b342b1a30e
@ -166,6 +166,7 @@ void mp_handle_nav(struct MPContext *mpctx)
|
||||
MP_VERBOSE(nav, "reload\n");
|
||||
// return immediately.
|
||||
// other events should be handled after reloaded.
|
||||
talloc_free(ev);
|
||||
return;
|
||||
}
|
||||
case MP_NAV_EVENT_RESET: {
|
||||
|
Loading…
Reference in New Issue
Block a user