mirror of
https://github.com/X11Libre/xf86-video-dummy.git
synced 2026-03-24 01:24:47 +00:00
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:
committed by
Jamey Sharp
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;
|
||||
|
||||
Reference in New Issue
Block a user