yiff.pl: forgot to infolist_free
This commit is contained in:
parent
3362f896e1
commit
967d0b1ea9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user