X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fruntime.c;h=078b4cef997d8ec11653d69df65bba2bd521bf1a;hb=a1af4392231c64d6a50a72f0518dd52369d46915;hp=fcd8782387635f0b44c57b60da57e779ab257c4c;hpb=7d5a7ea7ac324bb4ee63094ddcf8e20ae9ba4322;p=mono.git diff --git a/mono/metadata/runtime.c b/mono/metadata/runtime.c index fcd87823876..078b4cef997 100644 --- a/mono/metadata/runtime.c +++ b/mono/metadata/runtime.c @@ -5,6 +5,7 @@ * Jonathan Pryor * * Copyright 2010 Novell, Inc (http://www.novell.com) + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include @@ -56,6 +57,7 @@ mono_runtime_is_shutting_down (void) static void fire_process_exit_event (MonoDomain *domain, gpointer user_data) { + MonoError error; MonoClassField *field; gpointer pa [2]; MonoObject *delegate, *exc; @@ -69,7 +71,8 @@ fire_process_exit_event (MonoDomain *domain, gpointer user_data) pa [0] = domain; pa [1] = NULL; - mono_runtime_delegate_invoke (delegate, pa, &exc); + mono_runtime_delegate_try_invoke (delegate, pa, &exc, &error); + mono_error_cleanup (&error); } static void