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:
Jeremy Huddleston 2011-09-14 14:32:02 -05:00 committed by Jamey Sharp
parent d70dde4808
commit dd598ca433
1 changed files with 2 additions and 2 deletions

View File

@ -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;