diff options
author | wm4 <wm4@nowhere> | 2014-03-25 15:44:47 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-25 15:44:47 +0100 |
commit | b342b1a30ea771e15b40c23143c95dc08bef0e55 (patch) | |
tree | a731c37b2c746ab1b8180358cf5c1327bd3ff939 /player | |
parent | b5fe3e9a826243e1edd315b60c0269fd559b0354 (diff) | |
download | mpv-b342b1a30ea771e15b40c23143c95dc08bef0e55.tar.bz2 mpv-b342b1a30ea771e15b40c23143c95dc08bef0e55.tar.xz |
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.
Diffstat (limited to 'player')
-rw-r--r-- | player/dvdnav.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/dvdnav.c b/player/dvdnav.c index d267d156f8..12ce5b621b 100644 --- a/player/dvdnav.c +++ b/player/dvdnav.c @@ -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: { |