diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-31 17:33:33 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-31 17:33:33 +0000 |
commit | 27ce33fe086d6d9c46bca06d6a2f52d5d134f4cc (patch) | |
tree | 1f5a7ab570915eea0d743a13fd64372e26b952c4 /libvo | |
parent | 4a9777a64e370999d8573a0de8d940270d585abd (diff) | |
download | mpv-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.c | 4 |
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 } |