Merge pull request #15223 from ibrahn/ogg-data-leak-fix

free associated audio data on AudioStreamOGGVorbis destruction
This commit is contained in:
Rémi Verschelde
2018-01-04 15:25:20 +01:00
committed by GitHub
2 changed files with 17 additions and 0 deletions

View File

@ -93,6 +93,7 @@ class AudioStreamOGGVorbis : public AudioStream {
float length;
bool loop;
float loop_offset;
void clear_data();
protected:
static void _bind_methods();
@ -111,6 +112,7 @@ public:
PoolVector<uint8_t> get_data() const;
AudioStreamOGGVorbis();
virtual ~AudioStreamOGGVorbis();
};
#endif