mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
allocate __GLXdisplayPrivate w/ Xcalloc instead of Xmalloc (bug 10569)
This commit is contained in:
parent
e8292d28e4
commit
f9574c3f6b
1 changed files with 1 additions and 1 deletions
|
|
@ -1246,7 +1246,7 @@ __GLXdisplayPrivate *__glXInitialize(Display* dpy)
|
|||
__glXUnlock();
|
||||
return 0;
|
||||
}
|
||||
dpyPriv = (__GLXdisplayPrivate *) Xmalloc(sizeof(__GLXdisplayPrivate));
|
||||
dpyPriv = (__GLXdisplayPrivate *) Xcalloc(1, sizeof(__GLXdisplayPrivate));
|
||||
if (!dpyPriv) {
|
||||
__glXUnlock();
|
||||
Xfree((char*) private);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue