A few fixes to make irssi work with garbage collected GLIB.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3055 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-12-10 17:31:26 +00:00 committed by cras
commit bb55d3ff4d
4 changed files with 12 additions and 4 deletions

View 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');