aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wintermute/Base/BPersistMgr.cpp2
-rw-r--r--engines/wintermute/Sys/SysClassRegistry.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/engines/wintermute/Base/BPersistMgr.cpp b/engines/wintermute/Base/BPersistMgr.cpp
index 46c2048ac7..c7c3661032 100644
--- a/engines/wintermute/Base/BPersistMgr.cpp
+++ b/engines/wintermute/Base/BPersistMgr.cpp
@@ -404,9 +404,9 @@ Common::String CBPersistMgr::getStringObj() {
char *ret = new char[len + 1];
_loadStream->read(ret, len);
ret[len] = '\0';
- delete[] ret;
Common::String retString = ret;
+ delete[] ret;
if (retString == "(null)") {
retString = "";
diff --git a/engines/wintermute/Sys/SysClassRegistry.cpp b/engines/wintermute/Sys/SysClassRegistry.cpp
index 66f3bed81f..0b173c3afb 100644
--- a/engines/wintermute/Sys/SysClassRegistry.cpp
+++ b/engines/wintermute/Sys/SysClassRegistry.cpp
@@ -38,6 +38,7 @@ namespace WinterMute {
//////////////////////////////////////////////////////////////////////////
CSysClassRegistry::CSysClassRegistry() {
_count = 0;
+ _disabled = false;
}