yiff.pl: forgot to infolist_free

This commit is contained in:
wowaname 2016-10-01 00:02:24 +00:00
parent 3362f896e1
commit 967d0b1ea9
1 changed files with 4 additions and 0 deletions

View File

@ -43,10 +43,14 @@ sub nicklist {
weechat::buffer_get_string($buffer, 'localvar_server').','.
weechat::buffer_get_string($buffer, 'localvar_channel'));
return () unless $iptr;
while (weechat::infolist_next($iptr)) {
push @nicks, weechat::infolist_string($iptr, 'name');
}
weechat::infolist_free($iptr);
return @nicks;
}