Skip to content

Commit

Permalink
2007-09-17 Zoltan Varga <vargaz@gmail.com>
Browse files Browse the repository at this point in the history
	* metadata.c (free_generic_class): Disable some code to fix the build.

	* domain.c (mono_cleanup): Fix a crash introduced by a previous patch.

svn path=/trunk/mono/; revision=85941
  • Loading branch information
vargaz committed Sep 17, 2007
1 parent 4258446 commit 20eb2b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions mono/metadata/ChangeLog
@@ -1,5 +1,9 @@
2007-09-17 Zoltan Varga <vargaz@gmail.com>

* metadata.c (free_generic_class): Disable some code to fix the build.

* domain.c (mono_cleanup): Fix a crash introduced by a previous patch.

* marshal.c (mono_marshal_get_xappdomain_dispatch): Allocate a piece of data
from the image mempool.

Expand Down
3 changes: 2 additions & 1 deletion mono/metadata/domain.c
Expand Up @@ -1535,7 +1535,8 @@ mono_init_com_types (void)
void
mono_cleanup (void)
{
mono_image_close (exe_image);
if (exe_image)
mono_image_close (exe_image);

mono_loader_cleanup ();
mono_classes_cleanup ();
Expand Down
3 changes: 3 additions & 0 deletions mono/metadata/metadata.c
Expand Up @@ -2115,6 +2115,8 @@ free_generic_class (MonoGenericClass *gclass)
if (gclass->cached_class) {
MonoClass *class = gclass->cached_class;

/* FIXME: */
#if 0
/* Allocated in mono_class_init () */
g_free (class->methods);
g_free (class->properties);
Expand All @@ -2128,6 +2130,7 @@ free_generic_class (MonoGenericClass *gclass)
/* Allocated in mono_generic_class_get_class () */
g_free (class->interfaces);
g_free (class);
#endif
}
g_free (gclass);
}
Expand Down

0 comments on commit 20eb2b7

Please sign in to comment.