From: Michael R. <mr...@us...> - 2002-11-10 13:47:04
|
Update of /cvsroot/xine/xine-ui/src/aaui In directory usw-pr-cvs1:/tmp/cvs-serv28612/src/aaui Modified Files: main.c Log Message: fix heap corruption detected by Darwin O'Connor Index: main.c =================================================================== RCS file: /cvsroot/xine/xine-ui/src/aaui/main.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- main.c 4 Nov 2002 20:10:25 -0000 1.37 +++ main.c 10 Nov 2002 13:47:01 -0000 1.38 @@ -122,16 +122,7 @@ break; case XINE_CONFIG_TYPE_STRING: - { - char *newv = string; - char *oldv = entry->str_value; - - oldv = entry->str_value; - entry->str_value = newv; - - if(oldv) - free(oldv); - } + entry->str_value = string; break; case XINE_CONFIG_TYPE_ENUM: |