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:
wm4 2014-03-25 15:44:47 +01:00
parent b5fe3e9a82
commit b342b1a30e
1 changed files with 1 additions and 0 deletions

View File

@ -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: {