summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-31 17:33:33 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-31 17:33:33 +0000
commit27ce33fe086d6d9c46bca06d6a2f52d5d134f4cc (patch)
tree1f5a7ab570915eea0d743a13fd64372e26b952c4 /libvo
parent4a9777a64e370999d8573a0de8d940270d585abd (diff)
downloadmpv-27ce33fe086d6d9c46bca06d6a2f52d5d134f4cc.tar.bz2
mpv-27ce33fe086d6d9c46bca06d6a2f52d5d134f4cc.tar.xz
unleak
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10221 b3059339-0415-0410-9bf9-f77b7e298cf2
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
}