diff --git a/src/QtLocationPlugin/QGCMapTileSet.cpp b/src/QtLocationPlugin/QGCMapTileSet.cpp index 794ec81c3e8d4c90d19396bbab0d9e9a72635974..38bff888e4e801d6d6978621709b3387de0d00c7 100644 --- a/src/QtLocationPlugin/QGCMapTileSet.cpp +++ b/src/QtLocationPlugin/QGCMapTileSet.cpp @@ -61,9 +61,8 @@ QGCCachedTileSet::QGCCachedTileSet(const QString& name) //----------------------------------------------------------------------------- QGCCachedTileSet::~QGCCachedTileSet() { - if(_networkManager) { - delete _networkManager; - } + delete _networkManager; + _networkManager = nullptr; } //-----------------------------------------------------------------------------