Fix memory leak in Browser::get_selected()