diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 21:40:21 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 21:40:21 +0000 |
commit | 0f55757c602c7fec723f73e5820ec936d24cd826 (patch) | |
tree | 6bd5d5eb110441ca6ddc4a01d90f4cf2d50af387 /src/resources/resourcemanager.cpp | |
parent | 654d24e74c56d240b8d622840c135e22a029636d (diff) | |
download | mana-client-0f55757c602c7fec723f73e5820ec936d24cd826.tar.gz mana-client-0f55757c602c7fec723f73e5820ec936d24cd826.tar.bz2 mana-client-0f55757c602c7fec723f73e5820ec936d24cd826.tar.xz mana-client-0f55757c602c7fec723f73e5820ec936d24cd826.zip |
Removed some useless null pointer checks.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 09102d2e..1cdf5a65 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -240,10 +240,8 @@ ResourceManager::getInstance() void ResourceManager::deleteInstance() { - if (instance != NULL) { - delete instance; - instance = NULL; - } + delete instance; + instance = NULL; } void* |