diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-22 12:08:36 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-22 12:08:36 +0000 |
commit | 559a5be42f860109a81a68070b43dd9b93f40e9c (patch) | |
tree | 2d7cfa1cd7425eb0ae442d572e3c267f969f33c5 /src | |
parent | 40ffd87dedacaaf6fdc8a86314ed50e63777063d (diff) | |
download | irssi-559a5be42f860109a81a68070b43dd9b93f40e9c.zip |
fixed a small memory leak
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1643 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/hilight-text.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |