[evolution/gnome-2-30] Bug 576165 - SIGSEGV in e_plugin_mono_register_type (bnc)
- From: Akhil Laddha <lakhil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-30] Bug 576165 - SIGSEGV in e_plugin_mono_register_type (bnc)
- Date: Wed, 26 May 2010 10:35:09 +0000 (UTC)
commit 87a71a63d78207cb17b1fb0f1ac98e8e57289469
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Wed May 26 15:50:09 2010 +0530
Bug 576165 - SIGSEGV in e_plugin_mono_register_type (bnc)
modules/plugin-mono/e-plugin-mono.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/modules/plugin-mono/e-plugin-mono.c b/modules/plugin-mono/e-plugin-mono.c
index f1fe76f..eb4b60c 100644
--- a/modules/plugin-mono/e-plugin-mono.c
+++ b/modules/plugin-mono/e-plugin-mono.c
@@ -121,6 +121,11 @@ plugin_mono_invoke (EPlugin *plugin,
plugin_mono = E_PLUGIN_MONO (plugin);
priv = plugin_mono->priv;
+ if (!domain) {
+ mono_config_parse (NULL);
+ domain = mono_jit_init (plugin_mono->location);
+ }
+
/* We need to do this every time since we may
* be called from any thread for some uses. */
mono_thread_attach (domain);
@@ -258,7 +263,4 @@ e_plugin_mono_register_type (GTypeModule *type_module)
plugin_mono_type = g_type_module_register_type (
type_module, E_TYPE_PLUGIN,
"EPluginMono", &type_info, 0);
-
- domain = mono_jit_init ("Evolution");
- mono_thread_attach (domain);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]