winsys/sw/dri: use correct free function for dri_sw_dt->data
authorWuZhen <wuzhen@jidemail.com>
Thu, 28 Apr 2016 07:34:56 +0000 (15:34 +0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 1 May 2016 11:31:29 +0000 (12:31 +0100)
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: Chih-Wei Huang <cwhuang@linux.org.tw>
[Emil Velikov: tweak commit summary/shortlog]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/winsys/sw/dri/dri_sw_winsys.c

index 5c98f2603c71444791f17596e4d7b549f82b2230..94d5092405eb4fd1c003fe8f7f6defe07523b36a 100644 (file)
@@ -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);
 }