ruby: fix crash when reloading ruby plugin (bug #34474)
This commit is contained in:
parent
7977f277ce
commit
fa830e5282
@ -11,6 +11,7 @@ Version 0.3.7 (under dev!)
|
|||||||
* core: enable background process under Cygwin to connect to servers, fix
|
* core: enable background process under Cygwin to connect to servers, fix
|
||||||
reconnection problem (bug #34626)
|
reconnection problem (bug #34626)
|
||||||
* guile: new script plugin for scheme (task #7289)
|
* guile: new script plugin for scheme (task #7289)
|
||||||
|
* ruby: fix crash when reloading ruby plugin (bug #34474)
|
||||||
|
|
||||||
Version 0.3.6 (2011-10-22)
|
Version 0.3.6 (2011-10-22)
|
||||||
--------------------------
|
--------------------------
|
||||||
|
@ -1096,7 +1096,12 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
|||||||
script_end (plugin, &ruby_scripts, &weechat_ruby_unload_all);
|
script_end (plugin, &ruby_scripts, &weechat_ruby_unload_all);
|
||||||
ruby_quiet = 0;
|
ruby_quiet = 0;
|
||||||
|
|
||||||
ruby_cleanup (0);
|
/*
|
||||||
|
* Do not cleanup Ruby because this causes a crash when plugin is reloaded
|
||||||
|
* again. This causes a memory leak, but I don't know better solution to
|
||||||
|
* this problem :(
|
||||||
|
*/
|
||||||
|
/*ruby_cleanup (0);*/
|
||||||
|
|
||||||
return WEECHAT_RC_OK;
|
return WEECHAT_RC_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user