]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Restart crash workaround.
authorToni Wilen <twilen@winuae.net>
Sun, 1 Feb 2015 14:51:39 +0000 (16:51 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 1 Feb 2015 14:51:39 +0000 (16:51 +0200)
main.cpp

index 0255702d8d69f956bc6564873faf7f5e92e0f33e..236953c4c8e08027d34b1430b058a5bddbdd3c08 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -126,6 +126,8 @@ void discard_prefs (struct uae_prefs *p, int type)
                xfree (s->option);
                xfree (s);
        }
+       p->all_lines = NULL;
+       currprefs.all_lines = changed_prefs.all_lines = NULL;
 #ifdef FILESYS
        filesys_cleanup ();
 #endif