Skip to content
Snippets Groups Projects
Commit 4f21f3f2 authored by WuZhen's avatar WuZhen Committed by Emil Velikov
Browse files

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" <mesa-stable@lists.freedesktop.org>
Signed-off-by: default avatarChih-Wei Huang <cwhuang@linux.org.tw>
[Emil Velikov: tweak commit summary/shortlog]
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: default avatarJose Fonseca <jfonseca@vmware.com>
parent 798f7a85
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment