From 559a5be42f860109a81a68070b43dd9b93f40e9c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 22 Jul 2001 12:08:36 +0000 Subject: fixed a small memory leak git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1643 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/hilight-text.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c index 4ce14df7..7050e9f1 100644 --- a/src/fe-common/core/hilight-text.c +++ b/src/fe-common/core/hilight-text.c @@ -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 */ -- cgit v1.2.3