mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
change MALLOC to CALLOC to silence valgrind error in _playback_copy_to_current()
This commit is contained in:
parent
4b603440f6
commit
5bae6b90f9
1 changed files with 3 additions and 3 deletions
|
|
@ -5,9 +5,9 @@
|
|||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 5.1
|
||||
* Version: 6.0
|
||||
*
|
||||
* Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
|
||||
* Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
|
|
@ -6129,7 +6129,7 @@ _mesa_NewList( GLuint list, GLenum mode )
|
|||
|
||||
/* Allocate new display list */
|
||||
ctx->ListState.CurrentListNum = list;
|
||||
ctx->ListState.CurrentBlock = (Node *) MALLOC( sizeof(Node) * BLOCK_SIZE );
|
||||
ctx->ListState.CurrentBlock = (Node *) CALLOC( sizeof(Node) * BLOCK_SIZE );
|
||||
ctx->ListState.CurrentListPtr = ctx->ListState.CurrentBlock;
|
||||
ctx->ListState.CurrentPos = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue