Skip to content

Commit

Permalink
Fix a memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Nov 10, 2023
1 parent 6794a04 commit b4a3d6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PowerEditor/src/MISC/Common/FileInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ Win32_IO_File::Win32_IO_File(const wchar_t *fname)
WIN32_FIND_STREAM_DATA findData;
HANDLE hFind = FindFirstStreamW(fname, FindStreamInfoStandard, &findData, 0);
if (hFind != INVALID_HANDLE_VALUE) // Alternate Data Streams found
{
dispParam = TRUNCATE_EXISTING;
else
FindClose(hFind);
}
}

_hFile = ::CreateFileW(fname, _accessParam, _shareParam, NULL, dispParam, _attribParam, NULL);
Expand Down

0 comments on commit b4a3d6a

Please sign in to comment.