mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 18:42:09 +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)){
|
||||
// name matches, try it
|
||||
if(!video_driver->preinit(vo_subdevice))
|
||||
{
|
||||
free(vo);
|
||||
return video_driver; // success!
|
||||
}
|
||||
}
|
||||
}
|
||||
// continue...
|
||||
free(vo);
|
||||
++vo_list;
|
||||
if(!(vo_list[0])) return NULL; // do NOT fallback to others
|
||||
}
|
||||
|
@ -1740,6 +1740,8 @@ char** sub_filenames(char* path, char *fname)
|
||||
}
|
||||
result2[subcnt] = NULL;
|
||||
|
||||
free(result);
|
||||
|
||||
return result2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user