Update of /cvsroot/mplayer/main/libao2 In directory mail:/var/tmp.root/cvs-serv28325 Modified Files: ao_plugin.c Log Message: memory leak(off by 1 bug) Index: ao_plugin.c =================================================================== RCS file: /cvsroot/mplayer/main/libao2/ao_plugin.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- ao_plugin.c 12 Mar 2002 06:32:02 -0000 1.15 +++ ao_plugin.c 21 Apr 2002 16:56:19 -0000 1.16 @@ -71,7 +71,7 @@ // Is this the last iteration or just another plugin if(cfg[cnt]=='\0'){ - ao_plugin_local_data.plugins=malloc((i+1)*sizeof(ao_plugin_functions_t*)); + ao_plugin_local_data.plugins=malloc((i+2)*sizeof(ao_plugin_functions_t*)); if(ao_plugin_local_data.plugins){ ao_plugin_local_data.plugins[i+1]=NULL; // Find the plugin matching the cfg string name