encoder/vorbis: remove vorbis_info_clear() calls from error code paths

The destructor will call this in any case.
This commit is contained in:
Max Kellermann 2016-05-09 13:21:54 +02:00
parent 80d2028bac
commit efcda95dda
1 changed files with 0 additions and 2 deletions

View File

@ -163,7 +163,6 @@ VorbisEncoder::Open(float quality, int bitrate, AudioFormat &_audio_format,
quality * 0.1)) {
error.Set(vorbis_encoder_domain,
"error initializing vorbis vbr");
vorbis_info_clear(&vi);
return false;
}
} else {
@ -175,7 +174,6 @@ VorbisEncoder::Open(float quality, int bitrate, AudioFormat &_audio_format,
bitrate * 1000, -1.0)) {
error.Set(vorbis_encoder_domain,
"error initializing vorbis encoder");
vorbis_info_clear(&vi);
return false;
}
}