Skip to content

Commit

Permalink
Fix a crash introduced by 64d35e3. Fixes mono#2150.
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Nov 22, 2011
1 parent 88ac3e5 commit ff47ddc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mono/metadata/mono-debug.c
Expand Up @@ -711,6 +711,9 @@ mono_debug_remove_method (MonoMethod *method, MonoDomain *domain)
MonoDebugMethodHeader *header;
MonoDebugMethodAddress *address;

if (!mono_debug_initialized)
return;

g_assert (method->dynamic);

mono_debugger_lock ();
Expand Down

0 comments on commit ff47ddc

Please sign in to comment.