comparison src/audacious/playlist.c @ 4114:3218e86beed7

Fixes memory leak in playlist_add_files() function when using extension probing and trying to add file with unknown extension. (Bugzilla #44)
author Jussi Judin <jjudin+audacious@iki.fi>
date Tue, 25 Dec 2007 01:16:26 -0600
parents 3e63b1bee1e7
children 4b4810391b05
comparison
equal deleted inserted replaced
4113:1e8498de4acc 4114:3218e86beed7
965 } 965 }
966 else if (cfg.playlist_detect && ext_flag != EXT_HAVE_SUBTUNE && ext_flag != EXT_CUSTOM) { /* local file, no probing, no subtune */ 966 else if (cfg.playlist_detect && ext_flag != EXT_HAVE_SUBTUNE && ext_flag != EXT_CUSTOM) { /* local file, no probing, no subtune */
967 if(cfg.use_extension_probing) { 967 if(cfg.use_extension_probing) {
968 if(ext_flag == EXT_TRUE) 968 if(ext_flag == EXT_TRUE)
969 list = g_list_prepend(list, filename); 969 list = g_list_prepend(list, filename);
970 else // ext_flag == EXT_FALSE => extension isn't known
971 g_free(filename);
970 } 972 }
971 else 973 else
972 list = g_list_prepend(list, filename); 974 list = g_list_prepend(list, filename);
973 } 975 }
974 else if ((pr = input_check_file(filename, TRUE)) != NULL) /* local file, probing or have subtune */ 976 else if ((pr = input_check_file(filename, TRUE)) != NULL) /* local file, probing or have subtune */