[MPlayer-dev-eng] [PATCH] input.c uninit memory free fix

Wei Jiang jiangw98 at yahoo.com
Sat Oct 23 23:47:31 CEST 2004


Tested on XBMC pre5 source base

diff -u -r1.102 input.c
--- input/input.c	20 Oct 2004 20:07:49 -0000	1.102
+++ input/input.c	23 Oct 2004 21:44:23 -0000
@@ -1333,6 +1333,7 @@
     free(binds[i].cmd);
 
   free(binds);
+  binds = NULL;
 
 }
   
@@ -1573,6 +1574,8 @@
 mp_input_uninit(void) {
   unsigned int i;
 
+  mp_input_free_binds(cmd_binds);
+
   for(i=0; i < num_key_fd; i++) {
     if(key_fds[i].close_func)
       key_fds[i].close_func(key_fds[i].fd);



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 




More information about the MPlayer-dev-eng mailing list