Move the mono_thread_create () function into utils/mono-threads.h/c, change/simplify...
[mono.git] / mono / metadata / image.c
index d592cee701d3ccc2d1c84094f0cedd7ca43c18af..dcb5c399a62edab973fd29eba6650b7071ab56ba 100644 (file)
@@ -1650,6 +1650,7 @@ mono_image_close_except_pools (MonoImage *image)
        free_hash (image->native_wrapper_aot_cache);
        free_hash (image->pinvoke_scopes);
        free_hash (image->pinvoke_scope_filenames);
+       free_hash (image->gsharedvt_types);
 
        /* The ownership of signatures is not well defined */
        g_hash_table_destroy (image->memberref_signatures);
@@ -2363,6 +2364,7 @@ void
 mono_image_append_class_to_reflection_info_set (MonoClass *class)
 {
        MonoImage *image = class->image;
+       g_assert (image->dynamic);
        mono_image_lock (image);
        image->reflection_info_unregister_classes = g_slist_prepend_mempool (image->mempool, image->reflection_info_unregister_classes, class);
        mono_image_unlock (image);