mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed handle leak when failed to get the image file size.
This commit is contained in:
parent
3c1338b4c5
commit
e56273113d
@ -358,6 +358,11 @@ void CTintedImage::LoadImage(const std::wstring& imageName, bool bLoadAlways)
|
||||
else
|
||||
{
|
||||
LogWithArgs(LOG_ERROR, L"%s: Unable to open: %s", m_ConfigName.c_str(), filename.c_str());
|
||||
|
||||
if (fileHandle != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
CloseHandle(fileHandle);
|
||||
}
|
||||
DisposeImage();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user