summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2005-06-13 16:44:53 +0000
committerDaniel Stone <daniel@fooishbar.org>2005-06-13 16:44:53 +0000
commite67de73f5ca7ae854c18fa1500c8eaf412b44c6c (patch)
tree64f337e65e9490d5b9daf58bd5ea5390e924202d /src
parent89e52cde6eaf5e2d46198ee2fa16b67ef7e1dd32 (diff)
Bug #1043: Fix leak when creating animated cursors.XORG-6_8_99_13XORG-6_8_99_12
Diffstat (limited to 'src')
-rw-r--r--src/cursor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cursor.c b/src/cursor.c
index 66c6afa..fc92924 100644
--- a/src/cursor.c
+++ b/src/cursor.c
@@ -711,6 +711,7 @@ XcursorImagesLoadCursor (Display *dpy, const XcursorImages *images)
anim[n].delay = images->images[n]->delay;
}
cursor = XRenderCreateAnimCursor (dpy, cursors->ncursor, anim);
+ XcursorCursorsDestroy(cursors);
free (anim);
}
#if defined HAVE_XFIXES && XFIXES_MAJOR >= 2