Fix for building mono in VS, and implement reading/writing USER/MACHINE level environ...
[mono.git] / mono / metadata / image.c
index d0d3b938290a4589e2b2f9fe08210b4d45b9371c..e7925f62fb48618739b925d37ba563dd30ec787c 100644 (file)
@@ -1199,6 +1199,8 @@ mono_image_close (MonoImage *image)
        }
        if (image->modules)
                g_free (image->modules);
+       if (image->references)
+               g_free (image->references);
        /*g_print ("destroy image %p (dynamic: %d)\n", image, image->dynamic);*/
        if (!image->dynamic) {
                if (debug_assembly_unload)