We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3207b33 + 88d2f08 commit 3191b8aCopy full SHA for 3191b8a
mono/mini/debugger-agent.c
@@ -4930,14 +4930,20 @@ breakpoints_cleanup (void)
4930
}
4931
4932
4933
- for (i = 0; i < breakpoints->len; ++i)
4934
- g_free (g_ptr_array_index (breakpoints, i));
4935
-
4936
- g_ptr_array_free (breakpoints, TRUE);
4937
- g_hash_table_destroy (bp_locs);
4938
4939
- breakpoints = NULL;
4940
- bp_locs = NULL;
+ if (breakpoints)
+ {
+ for (i = 0; i < breakpoints->len; ++i)
+ g_free (g_ptr_array_index (breakpoints, i));
+
+ g_ptr_array_free (breakpoints, TRUE);
+ breakpoints = NULL;
+ }
4941
4942
+ if (bp_locs)
4943
4944
+ g_hash_table_destroy (bp_locs);
4945
+ bp_locs = NULL;
4946
4947
4948
mono_loader_unlock ();
4949
0 commit comments