Commit 78cc4adf authored by Berke Viktor's avatar Berke Viktor

Only g_free() if we g_malloc() with strip_color()

parent 1edd9203
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment