mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
perl: increment count of hash returned by API (fix crash when script tries to read hash without making a copy)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.3.7-rc3, 2012-02-19
|
||||
v0.3.7-rc3, 2012-02-20
|
||||
|
||||
|
||||
Version 0.3.7 (under dev!)
|
||||
@@ -100,6 +100,8 @@ Version 0.3.7 (under dev!)
|
||||
* irc: auto-connect to servers created with "irc://" on command line but not
|
||||
other servers if "-a" ("--no-connect") is given
|
||||
* guile: new script plugin for scheme (task #7289)
|
||||
* perl: increment count of hash returned by API (fix crash when script tries to
|
||||
read hash without making a copy)
|
||||
* python: add support of Python 3.x (task #11704)
|
||||
* relay: do not create relay if there is a problem with socket creation
|
||||
(bug #35345)
|
||||
|
||||
@@ -265,7 +265,7 @@ weechat_perl_exec (struct t_plugin_script *script,
|
||||
break;
|
||||
case 'h': /* hash */
|
||||
hash = weechat_perl_hashtable_to_hash (argv[i]);
|
||||
XPUSHs(sv_2mortal((SV *)hash));
|
||||
XPUSHs(sv_2mortal(newRV_inc((SV *)hash)));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user