2010-05-13 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_create_from_typedef): Only return
the class if no exceptions were detected.
* class.c (mono_class_create_from_typedef): Don't remove
broken classes from class_cache. Just set failure and
bail out.
This fixes a memory a memory leak where resolving the same
broken class multiple times resulted in a memory leak.
The right behavior would be to actually return the class
a let the caller figure it out.
git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mono@157330 e3ebcda4-bce8-0310-ba0a-eca2169e7518