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 c3c2411eb7e0e9e9cd6c2efa74789851e2b4fad6..3a879281a7b77199d257a4490e25bc1b62b2bb6a 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;