Added SILC Thread Queue API
[crypto.git] / apps / irssi / src / fe-text / textbuffer-reformat.c
index da75a5a80a527279fab29e906aff27da309448cd..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');
@@ -275,6 +276,6 @@ void textbuffer_reformat_deinit(void)
        g_string_free(format, TRUE);
 
        signal_remove("print format", (SIGNAL_FUNC) sig_print_format);
-       signal_remove("print text finished", (SIGNAL_FUNC) sig_gui_printtext_finished);
+       signal_remove("gui print text finished", (SIGNAL_FUNC) sig_gui_printtext_finished);
        signal_remove("setup changed", (SIGNAL_FUNC) read_settings);
 }