Circular ownership on CdmAdapter |
|
Issue descriptionCdmAdapter -> CdmPromiseAdapter -> CdmInitializedPromise -> CdmAdapter // |cdm| ownership passed to the promise. cdm->Initialize(std::make_unique<CdmInitializedPromise>(cdm_created_cb, cdm)); So if the initialization doesn't finish properly, e.g. the CDM never calls OnInitialized(), we'll leak the CdmAdapter and the CDM instance. |
|
►
Sign in to add a comment |
|
Comment 1 by xhw...@chromium.org
, Jun 8 2018