softpipe: Use memory allocation macros.

Fixes segfault with memory debugging on.
This commit is contained in:
José Fonseca 2011-09-25 11:46:49 +01:00
parent 1f23ac8082
commit f32c9c2108
2 changed files with 3 additions and 3 deletions

View file

@ -93,8 +93,8 @@ create_fs_variant(struct softpipe_context *softpipe,
}
if (stipple_fs) {
free((void *) stipple_fs->tokens);
free(stipple_fs);
FREE((void *) stipple_fs->tokens);
FREE(stipple_fs);
}
return var;

View file

@ -1722,7 +1722,7 @@ create_filter_table(void)
{
unsigned i;
if (!weightLut) {
weightLut = (float *) malloc(WEIGHT_LUT_SIZE * sizeof(float));
weightLut = (float *) MALLOC(WEIGHT_LUT_SIZE * sizeof(float));
for (i = 0; i < WEIGHT_LUT_SIZE; ++i) {
float alpha = 2;