From 7b0cced319c46d3cc04b1da6d6aaed9232674e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 15 Aug 2018 12:16:52 +0200 Subject: core: fix destruction of line prefix in weechat_print modifier --- src/gui/gui-chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index 727dc5a4b..2cc2c84b2 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -799,7 +799,7 @@ gui_chat_printf_date_tags_internal (struct t_gui_buffer *buffer, { if (new_line->data->prefix) { - free (new_line->data->prefix); + string_shared_free (new_line->data->prefix); new_line->data->prefix = NULL; } new_line->data->prefix_length = 0; -- cgit v1.2.3