From: Christian König Date: Mon, 13 Feb 2012 11:10:47 +0000 (+0100) Subject: st/vdpau: fix a small memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78734e375a0e3ea87abd6d5b2f85946e78e96015;p=mesa.git st/vdpau: fix a small memory leak The matrix filter wasn't freed on mixer destruction. Signed-off-by: Christian König --- diff --git a/src/gallium/state_trackers/vdpau/mixer.c b/src/gallium/state_trackers/vdpau/mixer.c index c3c2411eb7e..3a879281a7b 100644 --- a/src/gallium/state_trackers/vdpau/mixer.c +++ b/src/gallium/state_trackers/vdpau/mixer.c @@ -178,6 +178,11 @@ vlVdpVideoMixerDestroy(VdpVideoMixer mixer) FREE(vmixer->noise_reduction.filter); } + if (vmixer->sharpness.filter) { + vl_matrix_filter_cleanup(vmixer->sharpness.filter); + FREE(vmixer->sharpness.filter); + } + FREE(vmixer); return VDP_STATUS_OK;