diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:01:11 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:34:41 +0000 |
commit | 2d738efb959912d8a89864e41190e0064fa77906 (patch) | |
tree | a27aa6768e1315be07168c6f94b816751b037ce5 | |
parent | 3c1d2fdeff0ed61d86fa7d35cb0a61535d9b2816 (diff) |
RandR: Remove usage of alloca
Replace with heap allocations.
-rw-r--r-- | randr/rrproperty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/randr/rrproperty.c b/randr/rrproperty.c index 5ac073f81..4617064e4 100644 --- a/randr/rrproperty.c +++ b/randr/rrproperty.c @@ -386,7 +386,7 @@ ProcRRListOutputProperties (ClientPtr client) for (prop = output->properties; prop; prop = prop->next) numProps++; if (numProps) - if(!(pAtoms = (Atom *)ALLOCATE_LOCAL(numProps * sizeof(Atom)))) + if(!(pAtoms = (Atom *)xalloc(numProps * sizeof(Atom)))) return(BadAlloc); rep.type = X_Reply; @@ -408,7 +408,7 @@ ProcRRListOutputProperties (ClientPtr client) { client->pSwapReplyFunc = (ReplySwapPtr)Swap32Write; WriteSwappedDataToClient(client, numProps * sizeof(Atom), pAtoms); - DEALLOCATE_LOCAL(pAtoms); + xfree(pAtoms); } return(client->noClientException); } |