Commit e7c949d3 authored by James Zern's avatar James Zern Committed by Gerrit Code Review

Merge "vp9/10 decoder_remove: check pbi pointer"

parents 040395b9 921c347e
...@@ -126,6 +126,9 @@ VP10Decoder *vp10_decoder_create(BufferPool *const pool) { ...@@ -126,6 +126,9 @@ VP10Decoder *vp10_decoder_create(BufferPool *const pool) {
void vp10_decoder_remove(VP10Decoder *pbi) { void vp10_decoder_remove(VP10Decoder *pbi) {
int i; int i;
if (!pbi)
return;
vpx_get_worker_interface()->end(&pbi->lf_worker); vpx_get_worker_interface()->end(&pbi->lf_worker);
vpx_free(pbi->lf_worker.data1); vpx_free(pbi->lf_worker.data1);
vpx_free(pbi->tile_data); vpx_free(pbi->tile_data);
......
...@@ -126,6 +126,9 @@ VP9Decoder *vp9_decoder_create(BufferPool *const pool) { ...@@ -126,6 +126,9 @@ VP9Decoder *vp9_decoder_create(BufferPool *const pool) {
void vp9_decoder_remove(VP9Decoder *pbi) { void vp9_decoder_remove(VP9Decoder *pbi) {
int i; int i;
if (!pbi)
return;
vpx_get_worker_interface()->end(&pbi->lf_worker); vpx_get_worker_interface()->end(&pbi->lf_worker);
vpx_free(pbi->lf_worker.data1); vpx_free(pbi->lf_worker.data1);
vpx_free(pbi->tile_data); vpx_free(pbi->tile_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment