st/vdpau: fix a small memory leak
authorChristian König <deathsimple@vodafone.de>
Mon, 13 Feb 2012 11:10:47 +0000 (12:10 +0100)
committerChristian König <deathsimple@vodafone.de>
Tue, 14 Feb 2012 21:32:08 +0000 (22:32 +0100)
The matrix filter wasn't freed on mixer destruction.

Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/state_trackers/vdpau/mixer.c

index c3c2411..3a87928 100644 (file)
@@ -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;