Sfoglia il codice sorgente

Fix crash on windows

Tobias Hieta 8 anni fa
parent
commit
9d444a75f1
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/system/UpdaterComponent.cpp

+ 3 - 2
src/system/UpdaterComponent.cpp

@@ -126,12 +126,13 @@ void UpdaterComponent::dlComplete(QNetworkReply* reply)
     QLOG_ERROR() << "Error downloading:" << reply->url() << "-" << reply->errorString();
     emit downloadError(reply->errorString());
 
-    if (m_hasManifest)
+    if (m_hasManifest && m_manifest)
     {
       m_manifest->abort();
     }
 
-    m_file->abort();
+    if (m_file)
+      m_file->abort();
   }
 }