mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
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
This commit is contained in:
parent
c955bcd672
commit
875adf35a0
@ -153,6 +153,7 @@ static void show_lastlog(const char *searchtext, GHashTable *optlist,
|
|||||||
if (g_hash_table_lookup(optlist, "count") != NULL) {
|
if (g_hash_table_lookup(optlist, "count") != NULL) {
|
||||||
printformat_window(active_win, MSGLEVEL_CLIENTNOTICE,
|
printformat_window(active_win, MSGLEVEL_CLIENTNOTICE,
|
||||||
TXT_LASTLOG_COUNT, len);
|
TXT_LASTLOG_COUNT, len);
|
||||||
|
textbuffer_line_unref_list(WINDOW_GUI(window)->view->buffer, list);
|
||||||
g_list_free(list);
|
g_list_free(list);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -162,6 +163,7 @@ static void show_lastlog(const char *searchtext, GHashTable *optlist,
|
|||||||
printformat_window(active_win,
|
printformat_window(active_win,
|
||||||
MSGLEVEL_CLIENTNOTICE|MSGLEVEL_LASTLOG,
|
MSGLEVEL_CLIENTNOTICE|MSGLEVEL_LASTLOG,
|
||||||
TXT_LASTLOG_TOO_LONG, len);
|
TXT_LASTLOG_TOO_LONG, len);
|
||||||
|
textbuffer_line_unref_list(WINDOW_GUI(window)->view->buffer, list);
|
||||||
g_list_free(list);
|
g_list_free(list);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user