2006-05-04 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / metadata / loader.c
index e7b3155e690624d02ae9a1b9abcd9ac0fe38af4d..2e755f4c9ef2b3318a801045672205f1d055e760 100644 (file)
@@ -57,6 +57,14 @@ mono_loader_init ()
        loader_error_thread_id = TlsAlloc ();
 }
 
+void
+mono_loader_cleanup (void)
+{
+       TlsFree (loader_error_thread_id);
+
+       DeleteCriticalSection (&loader_mutex);
+}
+
 /*
  * Handling of type load errors should be done as follows:
  *
@@ -1335,7 +1343,7 @@ mono_free_method  (MonoMethod *method)
                 * locals are shared.
                 */
                /* mono_metadata_free_method_signature (method->signature); */
-               g_free (method->signature);
+               /* g_free (method->signature); */
        }
 
        if (method->dynamic) {