mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 11:24:59 +08:00
Merge pull request #39910 from starryalley/fix-videoplayer-file-close
VideoStreamGDNative: close file in cleanup()
This commit is contained in:
commit
46b36805d9
@ -214,6 +214,11 @@ void VideoStreamPlaybackGDNative::cleanup() {
|
||||
if (pcm) {
|
||||
memfree(pcm);
|
||||
}
|
||||
if (file) {
|
||||
file->close();
|
||||
memdelete(file);
|
||||
file = nullptr;
|
||||
}
|
||||
pcm = nullptr;
|
||||
time = 0;
|
||||
num_channels = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user