mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-14 21:35:06 -05:00
Only g_free() if we g_malloc() with strip_color()
This commit is contained in:
parent
1edd920362
commit
78cc4adfed
@ -386,7 +386,10 @@ scrollback_load (session *sess)
|
||||
cleaned_text = text_replace_non_bmp (text, -1, &cleaned_len);
|
||||
if (cleaned_text != NULL)
|
||||
{
|
||||
g_free (text);
|
||||
if (prefs.text_replay_strip_color)
|
||||
{
|
||||
g_free (text);
|
||||
}
|
||||
text = cleaned_text;
|
||||
}
|
||||
fe_print_text (sess, text, stamp);
|
||||
|
Loading…
Reference in New Issue
Block a user