2008-05-30 Rodrigo Kumpera <rkumpera@novell.com>
authorRodrigo Kumpera <kumpera@gmail.com>
Sat, 31 May 2008 00:32:45 +0000 (00:32 -0000)
committerRodrigo Kumpera <kumpera@gmail.com>
Sat, 31 May 2008 00:32:45 +0000 (00:32 -0000)
commitc7fe8d3f8078bfad625d64933ae4d034e8229e3e
treed586ad718793561f6e69139f0476f882f78f333c
parent3dbbc6e6aa106381958d5056983f59ae37cc86bd
2008-05-30 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_type_get_object): Don't store the suplied
MonoType with type_hash. A caller which pass a type that
was mono_metadata_type_dup'ed cannot free it reliably, as type_hash
might end with a pointer to freed memory.
The solution is to use byval_arg or this_arg from the associated
MonoClass of the supplied type.

svn path=/trunk/mono/; revision=104574
mono/metadata/ChangeLog
mono/metadata/reflection.c