X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Frawbuffer.c;h=4475c1271a3b26160fb401c9d7385062273de307;hb=cd0f05d6fd528c0f63327a908e2be2f4a9620933;hp=b390f76aa86ee7825f71af20530abcdcbf15b4c5;hpb=f73e0d5c67f0d26e85b92fc4b75fc48783f20d64;p=mono.git diff --git a/mono/metadata/rawbuffer.c b/mono/metadata/rawbuffer.c index b390f76aa86..4475c1271a3 100644 --- a/mono/metadata/rawbuffer.c +++ b/mono/metadata/rawbuffer.c @@ -89,6 +89,14 @@ mono_raw_buffer_init (void) mmap_map = g_hash_table_new (NULL, NULL); } +void +mono_raw_buffer_cleanup (void) +{ + g_hash_table_destroy (mmap_map); + + DeleteCriticalSection (&mmap_mutex); +} + static void * mono_raw_buffer_load_mmap (int fd, int is_writable, guint32 base, size_t size) {