Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f70e8841 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Fix exception when delete an uninitialized object"

parents e766f145 142514e1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -144,6 +144,7 @@ static bool SniffAMR(

AMRExtractor::AMRExtractor(DataSourceHelper *source)
    : mDataSource(source),
      mMeta(NULL),
      mInitCheck(NO_INIT),
      mOffsetTableLength(0) {
    float confidence;
@@ -191,8 +192,10 @@ AMRExtractor::AMRExtractor(DataSourceHelper *source)

AMRExtractor::~AMRExtractor() {
    delete mDataSource;
    if (mMeta) {
        AMediaFormat_delete(mMeta);
    }
}

media_status_t AMRExtractor::getMetaData(AMediaFormat *meta) {
    AMediaFormat_clear(meta);