Attempted fix for 01092: debugger crashes when exiting during "run to cursor"

This commit is contained in:
Aaron Giles 2008-07-26 14:24:11 +00:00
parent d6108e5347
commit 1cc0010977
2 changed files with 4 additions and 4 deletions

View File

@ -124,10 +124,6 @@ static void video_exit(running_machine *machine)
bitmap_free(effect_bitmap);
effect_bitmap = NULL;
// possibly kill the debug window
if (options_get_bool(mame_options(), OPTION_DEBUG))
debugwin_destroy_windows();
// free all of our monitor information
while (win_monitor_list != NULL)
{

View File

@ -270,6 +270,10 @@ static void winwindow_exit(running_machine *machine)
{
assert(GetCurrentThreadId() == main_threadid);
// possibly kill the debug window
if (options_get_bool(mame_options(), OPTION_DEBUG))
debugwin_destroy_windows();
// free all the windows
while (win_window_list != NULL)
{