Browse Source

Fix crash

kiwec 1 month ago
parent
commit
0b3cb688e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/App/Osu/Downloader.cpp

+ 1 - 1
src/App/Osu/Downloader.cpp

@@ -213,8 +213,8 @@ void download(const char* url, float* progress, std::vector<uint8_t>& out, int*
     pthread_mutex_unlock(&threads_mtx);
 
 end:
+    curl_free(hostname);
     curl_url_cleanup(urlu);
-    free(hostname);
 }
 
 void download_beatmapset(uint32_t set_id, float* progress) {