summaryrefslogtreecommitdiff
path: root/xserver/render/animcur.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2013-09-28 15:36:37 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2013-09-28 15:36:37 +0000
commit38df610d40f8f526ef829d415c534c57c7ec5831 (patch)
treeaf68c6ff669aa089dccf201a866bd76388097bad /xserver/render/animcur.c
parent5c4c0022fdfd73890c4d9497d35bf24f09c08ecb (diff)
Update to xserver 1.14.3
Diffstat (limited to 'xserver/render/animcur.c')
-rw-r--r--xserver/render/animcur.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xserver/render/animcur.c b/xserver/render/animcur.c
index 9cbba83fa..038c5b9be 100644
--- a/xserver/render/animcur.c
+++ b/xserver/render/animcur.c
@@ -383,8 +383,7 @@ AnimCursorCreate(CursorPtr *cursors, CARD32 *deltas, int ncursor,
ac->elts = (AnimCurElt *) (ac + 1);
for (i = 0; i < ncursor; i++) {
- cursors[i]->refcnt++;
- ac->elts[i].pCursor = cursors[i];
+ ac->elts[i].pCursor = RefCursor(cursors[i]);
ac->elts[i].delay = deltas[i];
}