X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Freflection.c;h=627604406fceefe18db221ba5fa335ab50bcb0e6;hb=6b94388f8ec7403206260926e0dfccdece3d5eb8;hp=5b8936655406f3cb2591a912ca9df5a6084c4428;hpb=1a83c6ed5b36fda68925377a8c03826b65e59023;p=mono.git diff --git a/mono/metadata/reflection.c b/mono/metadata/reflection.c index 5b893665540..627604406fc 100644 --- a/mono/metadata/reflection.c +++ b/mono/metadata/reflection.c @@ -5091,7 +5091,7 @@ create_dynamic_mono_image (MonoDynamicAssembly *assembly, char *assembly_name, c #else image = g_new0 (MonoDynamicImage, 1); #endif - + mono_profiler_module_event (&image->image, MONO_PROFILE_START_LOAD); /*g_print ("created image %p\n", image);*/ @@ -5256,6 +5256,17 @@ mono_dynamic_image_free (MonoDynamicImage *image) } } +void +mono_dynamic_image_free_image (MonoDynamicImage *image) +{ + /* See create_dynamic_mono_image () */ +#if HAVE_BOEHM_GC + /* Allocated using GC_MALLOC */ +#else + g_free (image); +#endif +} + #ifndef DISABLE_REFLECTION_EMIT /*