From 4f21f3f2e866e5c95bf4b924729bde35dbc35df0 Mon Sep 17 00:00:00 2001 From: WuZhen Date: Thu, 28 Apr 2016 15:34:56 +0800 Subject: [PATCH] winsys/sw/dri: use correct free function for dri_sw_dt->data align_malloc() is used to allocate dri_sw_dt->data, thus we should not be using FREE() but align_free(). Cc: "11.2 11.1" Signed-off-by: Chih-Wei Huang [Emil Velikov: tweak commit summary/shortlog] Reviewed-by: Emil Velikov Reviewed-by: Jose Fonseca --- src/gallium/winsys/sw/dri/dri_sw_winsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/winsys/sw/dri/dri_sw_winsys.c b/src/gallium/winsys/sw/dri/dri_sw_winsys.c index 5c98f2603c7..94d5092405e 100644 --- a/src/gallium/winsys/sw/dri/dri_sw_winsys.c +++ b/src/gallium/winsys/sw/dri/dri_sw_winsys.c @@ -125,7 +125,7 @@ dri_sw_displaytarget_destroy(struct sw_winsys *ws, { struct dri_sw_displaytarget *dri_sw_dt = dri_sw_displaytarget(dt); - FREE(dri_sw_dt->data); + align_free(dri_sw_dt->data); FREE(dri_sw_dt); } -- 2.30.2