summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@irssi.org>2008-10-31 10:57:32 +0000
committerjilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-10-31 10:57:32 +0000
commit875adf35a0f2da089662da42dd1cf44474527064 (patch)
tree87f21be7eb9abe91cd8409449722594090c715fc /src/fe-text
parentc955bcd67249b6b0c66282a6e5a7970ea9729fbb (diff)
downloadirssi-875adf35a0f2da089662da42dd1cf44474527064.zip
Fix a memory leak with /lastlog -count and rejected (too much) /lastlog.
The matched lines would not be freed when they expired from the buffer. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4878 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/lastlog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/lastlog.c b/src/fe-text/lastlog.c
index 5157a0dd..8791405f 100644
--- a/src/fe-text/lastlog.c
+++ b/src/fe-text/lastlog.c
@@ -153,6 +153,7 @@ static void show_lastlog(const char *searchtext, GHashTable *optlist,
if (g_hash_table_lookup(optlist, "count") != NULL) {
printformat_window(active_win, MSGLEVEL_CLIENTNOTICE,
TXT_LASTLOG_COUNT, len);
+ textbuffer_line_unref_list(WINDOW_GUI(window)->view->buffer, list);
g_list_free(list);
return;
}
@@ -162,6 +163,7 @@ static void show_lastlog(const char *searchtext, GHashTable *optlist,
printformat_window(active_win,
MSGLEVEL_CLIENTNOTICE|MSGLEVEL_LASTLOG,
TXT_LASTLOG_TOO_LONG, len);
+ textbuffer_line_unref_list(WINDOW_GUI(window)->view->buffer, list);
g_list_free(list);
return;
}