summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-07-19 10:34:48 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-07-19 10:34:48 +0200
commit521d60736d91742fde3fdef73c173e59d222d11c (patch)
tree3753878b02774604176f8a97302f3699c41c8d91 /src
parentef81a24f643a5373c751ff827ccf07e479a5e75f (diff)
Oh sweet free()dom
Diffstat (limited to 'src')
-rw-r--r--src/common/text.c10
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++;
 		}