You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
VideoStreamGDNative: close file in cleanup
We should close the file handle when we are done.
This commit is contained in:
@@ -214,6 +214,11 @@ void VideoStreamPlaybackGDNative::cleanup() {
|
|||||||
if (pcm) {
|
if (pcm) {
|
||||||
memfree(pcm);
|
memfree(pcm);
|
||||||
}
|
}
|
||||||
|
if (file) {
|
||||||
|
file->close();
|
||||||
|
memdelete(file);
|
||||||
|
file = nullptr;
|
||||||
|
}
|
||||||
pcm = nullptr;
|
pcm = nullptr;
|
||||||
time = 0;
|
time = 0;
|
||||||
num_channels = -1;
|
num_channels = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user