projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70c2a93
)
[reflection] mono_error_init
author
Aleksey Kliger
<aleksey@xamarin.com>
Thu, 14 Jul 2016 19:47:07 +0000
(15:47 -0400)
committer
Aleksey Kliger
<aleksey@xamarin.com>
Thu, 14 Jul 2016 19:47:07 +0000
(15:47 -0400)
avoid a crash when there's a cache hit
mono/metadata/reflection.c
patch
|
blob
|
history
diff --git
a/mono/metadata/reflection.c
b/mono/metadata/reflection.c
index 2dd53c18b14fa153f37d63e368fb6cfebefe366e..6fbeb7f4646b5c54e00ca321824268263dd1fc1f 100644
(file)
--- a/
mono/metadata/reflection.c
+++ b/
mono/metadata/reflection.c
@@
-7638,6
+7638,7
@@
mono_event_get_object_checked (MonoDomain *domain, MonoClass *klass, MonoEvent *
MonoReflectionEvent *res;
MonoReflectionMonoEvent *mono_event;
+ mono_error_init (error);
CHECK_OBJECT (MonoReflectionEvent *, event, klass);
mono_event = (MonoReflectionMonoEvent *)mono_object_new_checked (domain, mono_class_get_mono_event_class (), error);
if (!mono_event)