mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-29 13:16:18 +00:00
WINTERMUTE: Avoid doing check before delete (deleting 0-pointer is safe)
This commit is contained in:
parent
388fbdb6eb
commit
1a571d9611
@ -92,10 +92,7 @@ void VideoTheoraPlayer::SetDefaults() {
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
VideoTheoraPlayer::~VideoTheoraPlayer(void) {
|
||||
cleanup();
|
||||
if(_subtitler) {
|
||||
delete _subtitler;
|
||||
_subtitler = NULL;
|
||||
}
|
||||
delete _subtitler;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user