VideoStreamGDNative: close file in cleanup
We should close the file handle when we are done.
This commit is contained in:
parent
27378524f2
commit
3b05d2c989
|
@ -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