yiff.pl: forgot to infolist_free

This commit is contained in:
wowaname 2016-10-01 00:02:24 +00:00
parent 3362f896e1
commit 967d0b1ea9

View File

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