From 4d79e227ff00cd77567b27b02e8847d6774029ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Mon, 9 Aug 2010 23:15:52 +0200 Subject: [PATCH] dvdnav: fix memory leak. --- modules/access/dvdnav.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c index 71df3a2542..9f5cf88343 100644 --- a/modules/access/dvdnav.c +++ b/modules/access/dvdnav.c @@ -417,6 +417,11 @@ static void Close( vlc_object_t *p_this ) } } + /* Free the array of titles */ + for( int i = 0; i < p_sys->i_title; i++ ) + vlc_input_title_Delete( p_sys->title[i] ); + TAB_CLEAN( p_sys->i_title, p_sys->title ); + dvdnav_close( p_sys->dvdnav ); free( p_sys ); } -- 2.39.2