diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-17 01:42:00 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-17 01:42:00 -0700 |
commit | 80f60e4af0e0b124335c5a09cad0b1eb42583536 (patch) | |
tree | 7abed526380f140db6ccacce4c10c24b75b8dc4b /src/cir_dga.c | |
parent | 3e5ebc4c1b9c2f751e50415b0d1bbb670c659eac (diff) |
Use malloc/calloc/realloc/free directly
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/cir_dga.c')
-rw-r--r-- | src/cir_dga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cir_dga.c b/src/cir_dga.c index de2e38c..f930231 100644 --- a/src/cir_dga.c +++ b/src/cir_dga.c @@ -82,9 +82,9 @@ CirDGAInit(ScreenPtr pScreen) if (!pCir->DGAnumModes) { pMode = firstMode = pScrn->modes; 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; |