Commit a1c695bb authored by hpi1's avatar hpi1

Fixed leak (old NAV_TITLE was not disposed when opening new one)

parent e1b5c1e8
......@@ -524,6 +524,11 @@ int bd_select_title(BLURAY *bd, uint32_t title_idx)
DEBUG(DBG_BLURAY, "Invalid title index %d! (%p)\n", title_idx, bd);
return 0;
if (bd->title) {
f_name = bd->title_list->title_info[title_idx].name;
bd->title = nav_title_open(bd->device_path, f_name);
if (bd->title == NULL) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment