diff options
author | Tobia Tesan | 2014-02-20 19:50:51 +0100 |
---|---|---|
committer | Tobia Tesan | 2014-10-15 21:36:46 +0200 |
commit | 1a571d9611ea21040f7b5ff971fcd7b70580a025 (patch) | |
tree | 6910aa6f27eb94cf90d075d1a1881a102348886a /engines/wintermute/video | |
parent | 388fbdb6eb8df910c2fff2dc34954f34759c5b16 (diff) | |
download | scummvm-rg350-1a571d9611ea21040f7b5ff971fcd7b70580a025.tar.gz scummvm-rg350-1a571d9611ea21040f7b5ff971fcd7b70580a025.tar.bz2 scummvm-rg350-1a571d9611ea21040f7b5ff971fcd7b70580a025.zip |
WINTERMUTE: Avoid doing check before delete (deleting 0-pointer is safe)
Diffstat (limited to 'engines/wintermute/video')
-rw-r--r-- | engines/wintermute/video/video_theora_player.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/wintermute/video/video_theora_player.cpp b/engines/wintermute/video/video_theora_player.cpp index 36d012ccb7..d16b2edb8c 100644 --- a/engines/wintermute/video/video_theora_player.cpp +++ b/engines/wintermute/video/video_theora_player.cpp @@ -92,10 +92,7 @@ void VideoTheoraPlayer::SetDefaults() { ////////////////////////////////////////////////////////////////////////// VideoTheoraPlayer::~VideoTheoraPlayer(void) { cleanup(); - if(_subtitler) { - delete _subtitler; - _subtitler = NULL; - } + delete _subtitler; } ////////////////////////////////////////////////////////////////////////// |