# HG changeset patch # User alex # Date 1054402413 0 # Node ID 5f0d4b36db5a22a32b186a0bcab76cc23b068c42 # Parent beeed3a9606ecedab8a96ee19db2c008d10f05b3 unleak diff -r beeed3a9606e -r 5f0d4b36db5a libvo/video_out.c --- a/libvo/video_out.c Sat May 31 17:30:47 2003 +0000 +++ b/libvo/video_out.c Sat May 31 17:33:33 2003 +0000 @@ -227,10 +227,14 @@ 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 } diff -r beeed3a9606e -r 5f0d4b36db5a subreader.c --- a/subreader.c Sat May 31 17:30:47 2003 +0000 +++ b/subreader.c Sat May 31 17:33:33 2003 +0000 @@ -1739,6 +1739,8 @@ result2[i] = result[i].fname; } result2[subcnt] = NULL; + + free(result); return result2; }