1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Merge pull request #1020 from teschi/allow_rawlog_lines_to_shrink_again

allow rawlog-buffer to shrink again after lowering "rawlog_lines"
This commit is contained in:
ailin-nemui 2019-05-23 10:39:45 +02:00 committed by GitHub
commit 7e7bc98396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ void rawlog_destroy(RAWLOG_REC *rawlog)
/* NOTE! str must be dynamically allocated and must not be freed after! */
static void rawlog_add(RAWLOG_REC *rawlog, char *str)
{
if (rawlog->lines->length >= rawlog_lines && rawlog_lines > 0) {
while (rawlog->lines->length >= rawlog_lines && rawlog_lines > 0) {
void *tmp = g_queue_pop_head(rawlog->lines);
g_free(tmp);
}