From e0b462b33b9080b46d354d525ef54da4c186bf1e Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 29 Apr 2007 00:15:32 +0000 Subject: Fix for crash when trying to select an outdated/wrong theme config. svn-id: r26670 --- gui/newgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 6d153a6b77..948c7fa56f 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -134,6 +134,7 @@ bool NewGui::loadNewTheme(const Common::String &style) { } delete _theme; + _theme = 0; if (style.compareToIgnoreCase("classic (builtin)") == 0) { _theme = new ThemeClassic(_system, style); -- cgit v1.2.3