mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 06:32:10 +08:00
fix: close copy dst file (#3384)
* fix: close copy dst file Signed-off-by: guoguangwu <guoguangwug@gmail.com> * Update website/src/pages/changelog.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Signed-off-by: guoguangwu <guoguangwug@gmail.com> Co-authored-by: Travis McLane <tmclane@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
aad811391b
commit
faf36e8634
@ -152,6 +152,7 @@ func COPY(source string, target string) {
|
||||
defer closefile(src)
|
||||
d, err := os.Create(target)
|
||||
checkError(err)
|
||||
defer closefile(d)
|
||||
_, err = io.Copy(d, src)
|
||||
checkError(err)
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Added mac option `DisableZoom` to remove zoom button. Added by @wizzymore in [PR](https://github.com/wailsapp/wails/pull/3289)
|
||||
- Changed Create a project with changing the default name to the project’s name. Changed by [@Twacqwq](https://github.com/Twacqwq) in [PR](https://github.com/wailsapp/wails/pull/3303)
|
||||
- Fix some typos in comments. Changed by [@reallylowest](https://github.com/reallylowest) in [PR](https://github.com/wailsapp/wails/pull/3357)
|
||||
- Fixed an issue where the destination file was not properly closed after copying. Changed by [@testwill](https://github.com/testwill) in [PR](https://github.com/wailsapp/wails/pull/3384)
|
||||
|
||||
## v2.8.0 - 2024-02-08
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user