diff options
author | Timo Sirainen <cras@irssi.org> | 2002-12-10 17:31:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-12-10 17:31:26 +0000 |
commit | bb55d3ff4d0b9f889f3c9834c10ad014f2edf9a1 (patch) | |
tree | 0f540dcfbdbdef587e182f8f597b83557f5ab525 /src/fe-text | |
parent | 0743ce0e39c1bd43ca2b473593452d21514b38a1 (diff) | |
download | irssi-bb55d3ff4d0b9f889f3c9834c10ad014f2edf9a1.zip |
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
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/textbuffer-reformat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/textbuffer-reformat.c b/src/fe-text/textbuffer-reformat.c index 62f17f0d..81c4421c 100644 --- a/src/fe-text/textbuffer-reformat.c +++ b/src/fe-text/textbuffer-reformat.c @@ -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'); |