Oh sweet free()dom

This commit is contained in:
Berke Viktor 2012-07-19 10:34:48 +02:00
parent ef81a24f64
commit 521d60736d
1 changed files with 8 additions and 2 deletions

View File

@ -343,7 +343,10 @@ scrollback_load (session *sess)
text = strip_color (text + 1, -1, STRIP_COLOR); text = strip_color (text + 1, -1, STRIP_COLOR);
} }
fe_print_text (sess, text, stamp); fe_print_text (sess, text, stamp);
g_free (text); if (prefs.text_replay_strip_color)
{
g_free (text);
}
} }
lines++; lines++;
} }
@ -387,7 +390,10 @@ scrollback_load (session *sess)
text = cleaned_text; text = cleaned_text;
} }
fe_print_text (sess, text, stamp); fe_print_text (sess, text, stamp);
g_free (text); if (prefs.text_replay_strip_color)
{
g_free (text);
}
} }
lines++; lines++;
} }