aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/handle.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-07-16 03:14:03 +0000
committerTorbjörn Andersson2010-07-16 03:14:03 +0000
commitbcb4c49a03a0eb6786ec008da522f1c3314c28f6 (patch)
treee9fceaa409d5fc042af43da15ee1a9329f142e11 /engines/tinsel/handle.cpp
parentd20ae841dd4321cb602139e175bef42f00268fcd (diff)
downloadscummvm-rg350-bcb4c49a03a0eb6786ec008da522f1c3314c28f6.tar.gz
scummvm-rg350-bcb4c49a03a0eb6786ec008da522f1c3314c28f6.tar.bz2
scummvm-rg350-bcb4c49a03a0eb6786ec008da522f1c3314c28f6.zip
Cleanup.
svn-id: r50924
Diffstat (limited to 'engines/tinsel/handle.cpp')
-rw-r--r--engines/tinsel/handle.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/engines/tinsel/handle.cpp b/engines/tinsel/handle.cpp
index 60eb08a2dd..fdc4484a7c 100644
--- a/engines/tinsel/handle.cpp
+++ b/engines/tinsel/handle.cpp
@@ -175,22 +175,18 @@ void SetupHandleTable() {
}
void FreeHandleTable() {
- if (handleTable) {
- free(handleTable);
- handleTable = NULL;
- }
- if (cdGraphStream) {
- delete cdGraphStream;
- cdGraphStream = 0;
- }
+ free(handleTable);
+ handleTable = NULL;
+
+ delete cdGraphStream;
+ cdGraphStream = NULL;
}
/**
* Loads a memory block as a file.
*/
void OpenCDGraphFile() {
- if (cdGraphStream)
- delete cdGraphStream;
+ delete cdGraphStream;
// As the theory goes, the right CD will be in there!