mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
fixed a small memory leak
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1643 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
40ffd87ded
commit
559a5be42f
@ -272,6 +272,7 @@ static void hilight_update_text_dest(TEXT_DEST_REC *dest, HILIGHT_REC *rec)
|
||||
if (rec->priority > 0)
|
||||
dest->hilight_priority = rec->priority;
|
||||
|
||||
g_free_not_null(dest->hilight_color);
|
||||
dest->hilight_color = hilight_get_act_color(rec);
|
||||
}
|
||||
|
||||
@ -292,7 +293,7 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text,
|
||||
&hilight_end);
|
||||
if (hilight == NULL)
|
||||
return;
|
||||
|
||||
|
||||
if (hilight->nick && (dest->level & (MSGLEVEL_PUBLIC|MSGLEVEL_ACTIONS)) == MSGLEVEL_PUBLIC)
|
||||
return; /* fe-messages.c should have taken care of this */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user