[PATCH] Revert fe31f9c + 977953b to fix issue for good.
Matthias Hopf
mhopf at suse.de
Mon Sep 21 10:13:31 PDT 2009
---
hw/xfree86/modes/xf86Cursors.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/hw/xfree86/modes/xf86Cursors.c b/hw/xfree86/modes/xf86Cursors.c
index 3d2d633..fc4df84 100644
--- a/hw/xfree86/modes/xf86Cursors.c
+++ b/hw/xfree86/modes/xf86Cursors.c
@@ -480,14 +480,8 @@ xf86_use_hw_cursor_argb (ScreenPtr screen, CursorPtr cursor)
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
xf86CursorInfoPtr cursor_info = xf86_config->cursor_info;
- if (xf86_config->cursor) {
- /* Under some circumstances an already set cursor is set again.
- * If the pointer is freed, ->bits is killed */
- if (xf86_config->cursor != cursor)
- FreeCursor (xf86_config->cursor, None);
- else
- --cursor->refcnt;
- }
+ if (xf86_config->cursor)
+ FreeCursor (xf86_config->cursor, None);
xf86_config->cursor = cursor;
++cursor->refcnt;
--
1.6.0.2
--61jdw2sOBCFtR2d/
Content-Type: text/x-patch; charset=us-ascii
Content-Disposition: attachment; filename="0002-Fix-sporadic-segfault-on-resume-due-to-accidentally.patch"
More information about the xorg-devel
mailing list