summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/video_out.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index fb5dfed516..44b8923136 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -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
}