Use malloc/free instead of deprecated X versions
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
parent
d70dde4808
commit
dd598ca433
@ -49,10 +49,10 @@ DUMMYDGAInit(ScreenPtr pScreen)
|
||||
|
||||
while(pMode) {
|
||||
|
||||
newmodes = xrealloc(modes, (num + 1) * sizeof(DGAModeRec));
|
||||
newmodes = realloc(modes, (num + 1) * sizeof(DGAModeRec));
|
||||
|
||||
if(!newmodes) {
|
||||
xfree(modes);
|
||||
free(modes);
|
||||
return FALSE;
|
||||
}
|
||||
modes = newmodes;
|
||||
|
Loading…
Reference in New Issue
Block a user