mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-07 16:59:08 +00:00
Fix crash.
This commit is contained in:
@@ -282,11 +282,7 @@ Result downloadFromRelease(std::string url, std::string asset, std::string path,
|
|||||||
|
|
||||||
CURL *hnd = curl_easy_init();
|
CURL *hnd = curl_easy_init();
|
||||||
|
|
||||||
if (downloadToRAM == true) {
|
|
||||||
ret = setupContext(hnd, apiurl.c_str());
|
ret = setupContext(hnd, apiurl.c_str());
|
||||||
} else {
|
|
||||||
ret = setupContextForDirectToFileDownload(hnd, apiurl.c_str());
|
|
||||||
}
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
socExit();
|
socExit();
|
||||||
free(result_buf);
|
free(result_buf);
|
||||||
|
|||||||
Reference in New Issue
Block a user