Initialize pointers to nullptr

This commit is contained in:
Dr. Chat 2015-05-22 23:02:53 -05:00
parent 3389b9e421
commit 866a5af427
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ extern "C" {
namespace xe {
namespace apu {
AudioDecoder::AudioDecoder() : offset_(0) {
}
AudioDecoder::AudioDecoder() : offset_(0), codec_(nullptr), context_(nullptr),
decoded_frame_(nullptr), packet_(nullptr) {}
AudioDecoder::~AudioDecoder() {
if (context_) {