summaryrefslogtreecommitdiff
path: root/src/dummy_dga.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-09-14 14:32:02 -0500
committerJamey Sharp <jamey@minilop.net>2011-09-14 15:48:11 -0500
commitdd598ca433d2386687f9543457e4c6ffdb16d7c4 (patch)
treec027c73f4b74c17d30076085620c2db02e460d5a /src/dummy_dga.c
parentd70dde48087a0d5c3930860ab97585d39de7b57e (diff)
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>
Diffstat (limited to 'src/dummy_dga.c')
-rw-r--r--src/dummy_dga.c4
1 files changed, 2 insertions, 2 deletions
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;