Initialize pointers to nullptr
This commit is contained in:
parent
3389b9e421
commit
866a5af427
|
@ -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_) {
|
||||
|
|
Loading…
Reference in New Issue