mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
softpipe: Use memory allocation macros.
Fixes segfault with memory debugging on.
This commit is contained in:
parent
1f23ac8082
commit
f32c9c2108
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue