summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDominik Honnef <dominikh@fork-bomb.org>2011-10-26 23:40:15 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-10-26 23:40:15 +0200
commitfa830e5282911ad5c92ca9399cff475a9a65d855 (patch)
treefc1620f36f9762980afed5169690affc9f5962cc /src
parent7977f277ce8099bde7bcf2dceb1401c04dc87ac8 (diff)
downloadweechat-fa830e5282911ad5c92ca9399cff475a9a65d855.zip
ruby: fix crash when reloading ruby plugin (bug #34474)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c
index 6e502aa11..8708923b7 100644
--- a/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/src/plugins/scripts/ruby/weechat-ruby.c
@@ -1096,7 +1096,12 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
script_end (plugin, &ruby_scripts, &weechat_ruby_unload_all);
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;
}