Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adam Jackson
xserver
Commits
977953bf
Commit
977953bf
authored
Sep 21, 2009
by
Matthias Hopf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Less intrusive workaround for sporadic segfault on resume.
Hopefully fixes fdo #24010 (memleak).
parent
55747d25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
hw/xfree86/modes/xf86Cursors.c
hw/xfree86/modes/xf86Cursors.c
+7
-9
No files found.
hw/xfree86/modes/xf86Cursors.c
View file @
977953bf
...
...
@@ -461,10 +461,6 @@ xf86_use_hw_cursor (ScreenPtr screen, CursorPtr cursor)
xf86CrtcConfigPtr
xf86_config
=
XF86_CRTC_CONFIG_PTR
(
scrn
);
xf86CursorInfoPtr
cursor_info
=
xf86_config
->
cursor_info
;
if
(
xf86_config
->
cursor
==
cursor
)
{
xf86DrvMsg
(
index
,
X_ERROR
,
"Trying to set already set cursor.
\n
"
);
return
FALSE
;
}
if
(
xf86_config
->
cursor
)
FreeCursor
(
xf86_config
->
cursor
,
None
);
xf86_config
->
cursor
=
cursor
;
...
...
@@ -484,12 +480,14 @@ 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
==
cursor
)
{
xf86DrvMsg
(
index
,
X_ERROR
,
"Trying to set already set cursor.
\n
"
);
return
FALSE
;
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment