From 1cc001097759717dd111dd9656b5811338a5b429 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Sat, 26 Jul 2008 14:24:11 +0000 Subject: [PATCH] Attempted fix for 01092: debugger crashes when exiting during "run to cursor" --- src/osd/windows/video.c | 4 ---- src/osd/windows/window.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osd/windows/video.c b/src/osd/windows/video.c index 1777f8be6df..79cfb3ff8e5 100644 --- a/src/osd/windows/video.c +++ b/src/osd/windows/video.c @@ -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) { diff --git a/src/osd/windows/window.c b/src/osd/windows/window.c index 18868115ebb..845511b4d90 100644 --- a/src/osd/windows/window.c +++ b/src/osd/windows/window.c @@ -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) {