From 78734e375a0e3ea87abd6d5b2f85946e78e96015 Mon Sep 17 00:00:00 2001 From: Christian König Date: Mon, 13 Feb 2012 12:10:47 +0100 Subject: st/vdpau: fix a small memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The matrix filter wasn't freed on mixer destruction. Signed-off-by: Christian König --- src/gallium/state_trackers/vdpau/mixer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/state_trackers') 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; -- cgit v1.2.3