Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
channel: fix channel_get_icon() - memory leak and handling
  • Loading branch information
perexg committed Nov 19, 2014
1 parent a0a2651 commit 207fcbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/channels.c
Expand Up @@ -662,7 +662,7 @@ channel_get_icon ( channel_t *ch )
continue;
snprintf(buf2, sizeof(buf2), "%s/%s", picon, icn+8);
if (i > 1 || check_file(buf2)) {
ch->ch_icon = strdup(icn);
icon = ch->ch_icon = strdup(icn);
channel_save(ch);
idnode_notify_simple(&ch->ch_id);
break;
Expand Down

0 comments on commit 207fcbf

Please sign in to comment.