[MPlayer-cvslog] r25417 - trunk/stream/stream_dvb.c
nicodvb
subversion at mplayerhq.hu
Sat Dec 15 22:06:58 CET 2007
Author: nicodvb
Date: Sat Dec 15 22:06:58 2007
New Revision: 25417
Log:
10l, in dvb_free_config() channels' names must be free individually
Modified:
trunk/stream/stream_dvb.c
Modified: trunk/stream/stream_dvb.c
==============================================================================
--- trunk/stream/stream_dvb.c (original)
+++ trunk/stream/stream_dvb.c Sat Dec 15 22:06:58 2007
@@ -426,7 +426,7 @@ static dvb_channels_list *dvb_get_channe
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 *confi
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);
More information about the MPlayer-cvslog
mailing list