mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Remove redundant null checks
Attempting to delete a null pointer is a noop in C++. Closes #2864. [1] https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null
This commit is contained in:
@@ -104,8 +104,7 @@ SearchPluginManager *SearchPluginManager::instance()
|
||||
|
||||
void SearchPluginManager::freeInstance()
|
||||
{
|
||||
if (m_instance)
|
||||
delete m_instance;
|
||||
delete m_instance;
|
||||
}
|
||||
|
||||
QStringList SearchPluginManager::allPlugins() const
|
||||
|
||||
Reference in New Issue
Block a user