Merged Irssi SVN (upcoming irssi 0.8.11).
[silc.git] / apps / irssi / src / fe-text / textbuffer-reformat.c
index 62f17f0d0e4e97e6d30827f523510f82c05a1704..81c4421c6ae6cfb572a2526374fa7499be92f9d0 100644 (file)
@@ -87,7 +87,8 @@ static char *textbuffer_line_get_format(WINDOW_REC *window, LINE_REC *line,
        text = (const unsigned char *) line->text;
 
        /* skip the beginning of the line until we find the format */
-       g_free(line_read_format(&text));
+       format_name = line_read_format(&text);
+       g_free(format_name);
        if (text[1] == LINE_CMD_FORMAT_CONT) {
                if (raw != NULL) {
                        g_string_append_c(raw, '\0');