ref: 6b374abc8654c93cdd42091164762150fd7951f0
parent: 341919d038e36d1e743d54eea4d8b3cd25a962cf
parent: 47cc64cdf89562c549b3b7b27b8a99947f23f045
author: James Zern <[email protected]>
date: Wed Jul 27 20:43:19 EDT 2016
Merge "vp9 denoiser: Derefencing pointer should be after null check."
--- a/vp9/encoder/vp9_denoiser.c
+++ b/vp9/encoder/vp9_denoiser.c
@@ -575,10 +575,10 @@
void vp9_denoiser_free(VP9_DENOISER *denoiser) {
int i;
- denoiser->frame_buffer_initialized = 0;
if (denoiser == NULL) {
return;
}
+ denoiser->frame_buffer_initialized = 0;
for (i = 0; i < MAX_REF_FRAMES; ++i) {
vpx_free_frame_buffer(&denoiser->running_avg_y[i]);
}