1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +02:00

guile: disable guile gmp allocator (fix crash on unload of relay plugin) (bug #40628)

This commit is contained in:
Pierre Carru
2013-11-19 19:41:16 +01:00
committed by Sebastien Helleu
parent 717eaae496
commit b5db21d6c4
3 changed files with 10 additions and 0 deletions
+7
View File
@@ -972,6 +972,13 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
guile_stdout = NULL;
/*
* prevent guile to use its own gmp allocator, because it can conflict
* with other plugins using GnuTLS like relay, which can crash WeeChat
* on unload (or exit)
*/
scm_install_gmp_memory_functions = 0;
scm_init_guile ();
guile_module_weechat = scm_c_define_module ("weechat",