summaryrefslogtreecommitdiff
path: root/src/fe-text/textbuffer-view.c
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2005-08-05 02:24:29 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2005-08-05 02:24:29 +0000
commite24bcb43df01c3e065b1c2a1d758e88457516405 (patch)
treeddf8b48eb71ff68cb85ebc3aea30626e69889892 /src/fe-text/textbuffer-view.c
parenta65e346f83171f9c7777c17f5d976a10609d8d11 (diff)
downloadirssi-e24bcb43df01c3e065b1c2a1d758e88457516405.zip
fix minor textbuffer leak, Bug 288 by Toby
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3897 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/textbuffer-view.c')
-rw-r--r--src/fe-text/textbuffer-view.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c
index c0853d8d..b8c12c07 100644
--- a/src/fe-text/textbuffer-view.c
+++ b/src/fe-text/textbuffer-view.c
@@ -1056,6 +1056,8 @@ static void view_bookmarks_check(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
if (new_line != NULL) {
g_hash_table_insert(view->bookmarks,
tmp->data, new_line);
+ } else {
+ g_free(tmp->data);
}
}
g_slist_free(rec.remove_list);