]> granicus.if.org Git - handbrake/commitdiff
dvdnav: fix double free on close
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 26 Aug 2019 18:53:44 +0000 (11:53 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 26 Aug 2019 18:55:52 +0000 (11:55 -0700)
libhb/dvdnav.c

index 061c20f061fc4f18b9933509df4416d23e1e71f1..bd29065686913e5e331b64a1f4e5947dc512bddf 100644 (file)
@@ -1868,11 +1868,11 @@ static void hb_dvdnav_close( hb_dvd_t ** _d )
 
     if (d->dvdnav) dvdnav_close( d->dvdnav );
     if (d->vmg)    ifoClose( d->vmg );
+    TitleCloseIfo(d);
     if (d->reader) DVDClose( d->reader );
 
     free(d->path);
 
-    TitleCloseIfo(d);
 
     free( d );
     *_d = NULL;