summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-25 15:44:47 +0100
committerwm4 <wm4@nowhere>2014-03-30 17:53:46 +0200
commit577d03da0c0c749d2b1145b94f3aabd380a271aa (patch)
treef3cb29fd0406e96308a319ccbeb1fbe229fc4868
parentfc510f0da889f392c1e6985eab9a40e37986cba8 (diff)
downloadmpv-577d03da0c0c749d2b1145b94f3aabd380a271aa.tar.bz2
mpv-577d03da0c0c749d2b1145b94f3aabd380a271aa.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.
-rw-r--r--player/dvdnav.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/dvdnav.c b/player/dvdnav.c
index 3f711b4834..0832e7fd9d 100644
--- a/player/dvdnav.c
+++ b/player/dvdnav.c
@@ -142,6 +142,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: {