summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristian König <[email protected]>2012-02-13 12:10:47 +0100
committerChristian König <[email protected]>2012-02-14 22:32:08 +0100
commit78734e375a0e3ea87abd6d5b2f85946e78e96015 (patch)
tree580169012c6cf13f9cb183e4faa83a8530d6c14f /src/gallium
parent553e8203879d163e6fe2f3a8f6b80a44749514c1 (diff)
st/vdpau: fix a small memory leak
The matrix filter wasn't freed on mixer destruction. Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/vdpau/mixer.c5
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 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;