diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-07-19 10:34:48 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-07-19 10:34:48 +0200 |
commit | 521d60736d91742fde3fdef73c173e59d222d11c (patch) | |
tree | 3753878b02774604176f8a97302f3699c41c8d91 /src | |
parent | ef81a24f643a5373c751ff827ccf07e479a5e75f (diff) |
Oh sweet free()dom
Diffstat (limited to 'src')
-rw-r--r-- | src/common/text.c | 10 |
1 files changed, 8 insertions, 2 deletions
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++; } |