aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2007-04-29 00:15:32 +0000
committerJohannes Schickel2007-04-29 00:15:32 +0000
commite0b462b33b9080b46d354d525ef54da4c186bf1e (patch)
tree04f4df3750a994d0fc1563621c9dff99b505ffd8
parentf5c73e1603c98df8a9e0ac1c99e9b4da27eb8132 (diff)
downloadscummvm-rg350-e0b462b33b9080b46d354d525ef54da4c186bf1e.tar.gz
scummvm-rg350-e0b462b33b9080b46d354d525ef54da4c186bf1e.tar.bz2
scummvm-rg350-e0b462b33b9080b46d354d525ef54da4c186bf1e.zip
Fix for crash when trying to select an outdated/wrong theme config.
svn-id: r26670
-rw-r--r--gui/newgui.cpp1
1 files changed, 1 insertions, 0 deletions
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);