File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ FlacAudioCursor::
59
59
FlacAudioCursor (FlacAudio *src, std::istream *stream) :
60
60
MovieAudioCursor(src),
61
61
_is_valid(false ),
62
- _drflac(nullptr )
62
+ _drflac(nullptr ),
63
+ _stream(stream)
63
64
{
64
65
nassertv (stream != nullptr );
65
66
nassertv (stream->good ());
@@ -91,6 +92,9 @@ FlacAudioCursor::
91
92
if (_drflac != nullptr ) {
92
93
drflac_close (_drflac);
93
94
}
95
+ if (_stream != nullptr ) {
96
+ VirtualFileSystem::close_read_file (_stream);
97
+ }
94
98
}
95
99
96
100
/* *
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class EXPCL_PANDA_MOVIES FlacAudioCursor : public MovieAudioCursor {
41
41
42
42
protected:
43
43
drflac *_drflac;
44
+ std::istream *_stream;
44
45
45
46
public:
46
47
static TypeHandle get_class_type () {
You can’t perform that action at this time.
0 commit comments