From 521d60736d91742fde3fdef73c173e59d222d11c Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Thu, 19 Jul 2012 10:34:48 +0200 Subject: Oh sweet free()dom --- src/common/text.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/common/text.c b/src/common/text.c index c437634e..246d8e8e 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -343,7 +343,10 @@ scrollback_load (session *sess) text = strip_color (text + 1, -1, STRIP_COLOR); } fe_print_text (sess, text, stamp); - g_free (text); + if (prefs.text_replay_strip_color) + { + g_free (text); + } } lines++; } @@ -387,7 +390,10 @@ scrollback_load (session *sess) text = cleaned_text; } fe_print_text (sess, text, stamp); - g_free (text); + if (prefs.text_replay_strip_color) + { + g_free (text); + } } lines++; } -- cgit 1.4.1