kometbomb / klystrack

A chiptune tracker
http://kometbomb.github.io/klystrack/
Other
481 stars 29 forks source link

Fixed double fclose(f) when calling export_wav #294

Closed nalquas closed 4 years ago

nalquas commented 4 years ago

Turns out fclose(f) is called inside of ww_finish, which is called inside of export_wav. Therefore, closing the already closed file after calling export_wav would result in a crash.

This should fix #293.