]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/src/theme_repository.cpp
cosmetic: remove nullity test on free() and delete
[vlc] / modules / gui / skins2 / src / theme_repository.cpp
index 04fc44e8c200e9952d9f494df8dcfb7c40c92c4f..5e4819bdbd4817f46f0e0ac3cd1878a3d6fe5458 100644 (file)
@@ -49,11 +49,8 @@ ThemeRepository *ThemeRepository::instance( intf_thread_t *pIntf )
 
 void ThemeRepository::destroy( intf_thread_t *pIntf )
 {
-    if( pIntf->p_sys->p_repository )
-    {
-        delete pIntf->p_sys->p_repository;
-        pIntf->p_sys->p_repository = NULL;
-    }
+    delete pIntf->p_sys->p_repository;
+    pIntf->p_sys->p_repository = NULL;
 }