aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream
diff options
context:
space:
mode:
authorGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-15 21:06:58 +0000
committerGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-15 21:06:58 +0000
commit1fd25fed635fee9ea79f6bd3d63c201aab4b615d (patch)
treeb44948f3730b75e33bded21266928033b196ce9f /stream
parente25991774e05a6d45d6f89af2809abd5a5e1f1ba (diff)
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
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvb.c9
1 files changed, 6 insertions, 3 deletions
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; i<config->count; 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; j<config->cards[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);