From 1fd25fed635fee9ea79f6bd3d63c201aab4b615d Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 15 Dec 2007 21:06:58 +0000 Subject: 10l, in dvb_free_config() channels' names must be free individually git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25417 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'stream/stream_dvb.c') diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index 5204570c60..ccc77190de 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -426,7 +426,7 @@ static dvb_channels_list *dvb_get_channels(char *filename, int type) void dvb_free_config(dvb_config_t *config) { - int i; + int i, j; for(i=0; icount; i++) { @@ -436,8 +436,11 @@ void dvb_free_config(dvb_config_t *config) continue; if(config->cards[i].list->channels) { - if(config->cards[i].list->channels->name) - free(config->cards[i].list->channels->name); + for(j=0; jcards[i].list->NUM_CHANNELS; j++) + { + if(config->cards[i].list->channels[j].name) + free(config->cards[i].list->channels[j].name); + } free(config->cards[i].list->channels); } free(config->cards[i].list); -- cgit v1.2.3