WINTERMUTE: Avoid doing check before delete (deleting 0-pointer is safe)

This commit is contained in:
Tobia Tesan 2014-02-20 19:50:51 +01:00
parent 388fbdb6eb
commit 1a571d9611

View File

@ -92,10 +92,7 @@ void VideoTheoraPlayer::SetDefaults() {
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
VideoTheoraPlayer::~VideoTheoraPlayer(void) { VideoTheoraPlayer::~VideoTheoraPlayer(void) {
cleanup(); cleanup();
if(_subtitler) { delete _subtitler;
delete _subtitler;
_subtitler = NULL;
}
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////