[Mesa-dev] [PATCH 2/2] std/vdpau: fix a small memory leak

Christian König deathsimple at vodafone.de
Mon Feb 13 04:03:27 PST 2012


The matrix filter wasn't freed on mixer destruction.

Signed-off-by: Christian König <deathsimple at vodafone.de>
---
 src/gallium/state_trackers/vdpau/mixer.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/vdpau/mixer.c b/src/gallium/state_trackers/vdpau/mixer.c
index c3c2411..3a87928 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;
-- 
1.7.5.4



More information about the mesa-dev mailing list