st/nine: Use align_free when needed
authorAxel Davy <axel.davy@ens.fr>
Thu, 28 Jan 2016 21:32:43 +0000 (22:32 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
Use align_free to free memory allocated
with align_malloc.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/gallium/state_trackers/nine/cubetexture9.c
src/gallium/state_trackers/nine/surface9.c
src/gallium/state_trackers/nine/texture9.c
src/gallium/state_trackers/nine/volume9.c

index abba2637946f2befdedb18793954255333e2bf3c..460cc8539424a260aa854f4eb2d5d5758ddfc8bd 100644 (file)
@@ -181,7 +181,7 @@ NineCubeTexture9_dtor( struct NineCubeTexture9 *This )
     }
 
     if (This->managed_buffer)
-        FREE(This->managed_buffer);
+        align_free(This->managed_buffer);
 
     NineBaseTexture9_dtor(&This->base);
 }
index 484176e6b963afc5e3856f70b2d0233b84051862..f88b75c3dd77017e5c6b827fdd5f2be55f99c18e 100644 (file)
@@ -165,7 +165,7 @@ NineSurface9_dtor( struct NineSurface9 *This )
 
     /* Release system memory when we have to manage it (no parent) */
     if (!This->base.base.container && This->data)
-        FREE(This->data);
+        align_free(This->data);
     NineResource9_dtor(&This->base);
 }
 
index bc325c1335e61455a40da289e7a89666ad2924fa..ada08cea90a3cc02af0ce743de45f31718b2bb28 100644 (file)
@@ -235,7 +235,7 @@ NineTexture9_dtor( struct NineTexture9 *This )
     }
 
     if (This->managed_buffer)
-        FREE(This->managed_buffer);
+        align_free(This->managed_buffer);
 
     NineBaseTexture9_dtor(&This->base);
 }
index b559fc268ab98b4cf565250d9ebbca504e6c9d41..f6988923caac59467e2f267c739b5277e68d544d 100644 (file)
@@ -136,7 +136,7 @@ NineVolume9_dtor( struct NineVolume9 *This )
         NineVolume9_UnlockBox(This);
 
     if (This->data)
-           FREE(This->data);
+           align_free(This->data);
 
     pipe_resource_reference(&This->resource, NULL);