mirror of
https://github.com/mpv-player/mpv
synced 2025-04-24 20:29:53 +00:00
unleak
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10221 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4a9777a64e
commit
27ce33fe08
@ -227,10 +227,14 @@ vo_functions_t* init_best_video_out(char** vo_list){
|
|||||||
if(!strcmp(info->short_name,vo)){
|
if(!strcmp(info->short_name,vo)){
|
||||||
// name matches, try it
|
// name matches, try it
|
||||||
if(!video_driver->preinit(vo_subdevice))
|
if(!video_driver->preinit(vo_subdevice))
|
||||||
|
{
|
||||||
|
free(vo);
|
||||||
return video_driver; // success!
|
return video_driver; // success!
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// continue...
|
// continue...
|
||||||
|
free(vo);
|
||||||
++vo_list;
|
++vo_list;
|
||||||
if(!(vo_list[0])) return NULL; // do NOT fallback to others
|
if(!(vo_list[0])) return NULL; // do NOT fallback to others
|
||||||
}
|
}
|
||||||
|
@ -1739,6 +1739,8 @@ char** sub_filenames(char* path, char *fname)
|
|||||||
result2[i] = result[i].fname;
|
result2[i] = result[i].fname;
|
||||||
}
|
}
|
||||||
result2[subcnt] = NULL;
|
result2[subcnt] = NULL;
|
||||||
|
|
||||||
|
free(result);
|
||||||
|
|
||||||
return result2;
|
return result2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user