diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2016-04-11 02:29:10 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@xamarin.com> | 2016-04-25 19:35:54 +0300 |
commit | 37fd919a4119f71289ada2098660eadb3cdaaf8a (patch) | |
tree | 374fa97062719fc583d53a210d07b5b0fcecc8f6 | |
parent | c52b810a7ef56d1eb87270579deebea7ce60cd5b (diff) |
[metadata] Guard access to mb->locals_list with DISABLE_JIT ifdef
The field is only available when DISABLE_JIT is not defined.
-rw-r--r-- | mono/metadata/method-builder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mono/metadata/method-builder.c b/mono/metadata/method-builder.c index d9c37a8a036..20211502224 100644 --- a/mono/metadata/method-builder.c +++ b/mono/metadata/method-builder.c @@ -183,9 +183,11 @@ mono_mb_create_method (MonoMethodBuilder *mb, MonoMethodSignature *signature, in #endif } +#ifndef DISABLE_JIT /* Free the locals list so mono_mb_free () doesn't free the types twice */ g_list_free (mb->locals_list); mb->locals_list = NULL; +#endif method->signature = signature; if (!signature->hasthis) |