mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 981966 - fix OggWriter memory leak; r=kinetik,f=mccr8
This commit is contained in:
parent
5d919b2c6e
commit
5f69aa4f0e
@ -22,6 +22,14 @@ OggWriter::OggWriter() : ContainerWriter()
|
||||
}
|
||||
}
|
||||
|
||||
OggWriter::~OggWriter()
|
||||
{
|
||||
if (mInitialized) {
|
||||
ogg_stream_clear(&mOggStreamState);
|
||||
}
|
||||
// mPacket's data was always owned by us, no need to ogg_packet_clear.
|
||||
}
|
||||
|
||||
nsresult
|
||||
OggWriter::Init()
|
||||
{
|
||||
|
@ -22,6 +22,7 @@ class OggWriter : public ContainerWriter
|
||||
{
|
||||
public:
|
||||
OggWriter();
|
||||
~OggWriter();
|
||||
|
||||
nsresult WriteEncodedTrack(const EncodedFrameContainer &aData,
|
||||
uint32_t aFlags = 0) MOZ_OVERRIDE;
|
||||
|
Loading…
Reference in New Issue
Block a user