diff --git a/src/dummy_dga.c b/src/dummy_dga.c index 82912e5..9710aef 100644 --- a/src/dummy_dga.c +++ b/src/dummy_dga.c @@ -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;