summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-25 15:44:47 +0100
committerwm4 <wm4@nowhere>2014-03-25 15:44:47 +0100
commitb342b1a30ea771e15b40c23143c95dc08bef0e55 (patch)
treea731c37b2c746ab1b8180358cf5c1327bd3ff939 /player
parentb5fe3e9a826243e1edd315b60c0269fd559b0354 (diff)
downloadmpv-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.c1
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: {