mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Windows: fix memleaks
This commit is contained in:
@@ -28,5 +28,5 @@ extern "C" void ffDetectHostImpl(FFHostResult* host)
|
||||
record.getString(L"Vendor", &host->sysVendor);
|
||||
}
|
||||
else
|
||||
ffStrbufInitS(&host->error, "No Wmi result returned");
|
||||
ffStrbufAppendS(&host->error, "No Wmi result returned");
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ FFWmiQuery::FFWmiQuery(const wchar_t* queryStr, FFstrbuf* error)
|
||||
if (InitOnceExecuteOnce(&s_InitOnce, &InitHandleFunction, nullptr, (void**)&context) == FALSE)
|
||||
{
|
||||
if(error)
|
||||
ffStrbufInitS(error, context);
|
||||
ffStrbufAppendS(error, context);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user