diff options
author | marha <marha@users.sourceforge.net> | 2010-05-11 15:11:55 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-05-11 15:11:55 +0000 |
commit | 820f57fadfe7d14e01e0284ff8a23298a0f59b20 (patch) | |
tree | 14b8a09656a95a710b976895d89f02e79ad30298 /xorg-server/mi/mipolypnt.c | |
parent | 20a84cc5bb91a8708cd9e9ebcd1715ceeab8dae2 (diff) | |
download | vcxsrv-820f57fadfe7d14e01e0284ff8a23298a0f59b20.tar.gz vcxsrv-820f57fadfe7d14e01e0284ff8a23298a0f59b20.tar.bz2 vcxsrv-820f57fadfe7d14e01e0284ff8a23298a0f59b20.zip |
svn merge -r581:HEAD "^/branches/released" .
Diffstat (limited to 'xorg-server/mi/mipolypnt.c')
-rw-r--r-- | xorg-server/mi/mipolypnt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg-server/mi/mipolypnt.c b/xorg-server/mi/mipolypnt.c index 5d6243ab0..12771ee4e 100644 --- a/xorg-server/mi/mipolypnt.c +++ b/xorg-server/mi/mipolypnt.c @@ -73,6 +73,9 @@ miPolyPoint( int i; xPoint *ppt; + if(!(pwidthInit = xalloc(npt * sizeof(int)))) + return; + /* make pointlist origin relative */ if (mode == CoordModePrevious) { @@ -107,8 +110,6 @@ miPolyPoint( DoChangeGC(pGC, GCFillStyle, &fsNew, 0); ValidateGC(pDrawable, pGC); } - if(!(pwidthInit = xalloc(npt * sizeof(int)))) - return; pwidth = pwidthInit; for(i = 0; i < npt; i++) *pwidth++ = 1; |