mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Util (Windows): fix mem leaks
This commit is contained in:
@@ -107,7 +107,7 @@ bool FFWmiRecord::getString(const wchar_t* key, FFstrbuf* strbuf)
|
||||
case VT_BSTR:
|
||||
if(type == CIM_DATETIME)
|
||||
{
|
||||
ISWbemDateTime *pDateTime;
|
||||
FF_AUTO_RELEASE_COM_OBJECT ISWbemDateTime *pDateTime = nullptr;
|
||||
BSTR dateStr;
|
||||
if(FAILED(CoCreateInstance(__uuidof(SWbemDateTime), 0, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pDateTime))))
|
||||
result = false;
|
||||
|
||||
Reference in New Issue
Block a user