Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
15653343
You need to sign in or sign up before continuing.
Commit
15653343
authored
Jul 22, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cursor.c: use SAFE_XFree
parent
d0a6c98c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Cursor.c
nx-X11/programs/Xserver/hw/nxagent/Cursor.c
+3
-4
No files found.
nx-X11/programs/Xserver/hw/nxagent/Cursor.c
View file @
15653343
...
@@ -61,6 +61,7 @@ is" without express or implied warranty.
...
@@ -61,6 +61,7 @@ is" without express or implied warranty.
#include "Events.h"
#include "Events.h"
#include "Render.h"
#include "Render.h"
#include "Client.h"
#include "Client.h"
#include "Utils.h"
#include "windowstr.h"
#include "windowstr.h"
#include "resource.h"
#include "resource.h"
...
@@ -211,7 +212,7 @@ Bool nxagentRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
...
@@ -211,7 +212,7 @@ Bool nxagentRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
XPutImage
(
nxagentDisplay
,
source
,
nxagentBitmapGC
,
image
,
XPutImage
(
nxagentDisplay
,
source
,
nxagentBitmapGC
,
image
,
0
,
0
,
0
,
0
,
pCursor
->
bits
->
width
,
pCursor
->
bits
->
height
);
0
,
0
,
0
,
0
,
pCursor
->
bits
->
width
,
pCursor
->
bits
->
height
);
XFree
(
image
);
SAFE_
XFree
(
image
);
image
=
XCreateImage
(
nxagentDisplay
,
image
=
XCreateImage
(
nxagentDisplay
,
nxagentDefaultVisual
(
pScreen
),
nxagentDefaultVisual
(
pScreen
),
...
@@ -229,7 +230,7 @@ Bool nxagentRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
...
@@ -229,7 +230,7 @@ Bool nxagentRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
XPutImage
(
nxagentDisplay
,
mask
,
nxagentBitmapGC
,
image
,
XPutImage
(
nxagentDisplay
,
mask
,
nxagentBitmapGC
,
image
,
0
,
0
,
0
,
0
,
pCursor
->
bits
->
width
,
pCursor
->
bits
->
height
);
0
,
0
,
0
,
0
,
pCursor
->
bits
->
width
,
pCursor
->
bits
->
height
);
XFree
(
image
);
SAFE_
XFree
(
image
);
fg_color
.
red
=
pCursor
->
foreRed
;
fg_color
.
red
=
pCursor
->
foreRed
;
fg_color
.
green
=
pCursor
->
foreGreen
;
fg_color
.
green
=
pCursor
->
foreGreen
;
...
@@ -264,14 +265,12 @@ Bool nxagentUnrealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
...
@@ -264,14 +265,12 @@ Bool nxagentUnrealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
if
(
nxagentCursorUsesRender
(
pCursor
,
pScreen
))
if
(
nxagentCursorUsesRender
(
pCursor
,
pScreen
))
{
{
PicturePtr
pPicture
=
nxagentCursorPicture
(
pCursor
,
pScreen
);
PicturePtr
pPicture
=
nxagentCursorPicture
(
pCursor
,
pScreen
);
FreePicture
(
pPicture
,
pPicture
->
id
);
FreePicture
(
pPicture
,
pPicture
->
id
);
}
}
if
(
nxagentCursor
(
pCursor
,
pScreen
)
!=
None
)
if
(
nxagentCursor
(
pCursor
,
pScreen
)
!=
None
)
{
{
XFreeCursor
(
nxagentDisplay
,
nxagentCursor
(
pCursor
,
pScreen
));
XFreeCursor
(
nxagentDisplay
,
nxagentCursor
(
pCursor
,
pScreen
));
nxagentCursor
(
pCursor
,
pScreen
)
=
None
;
nxagentCursor
(
pCursor
,
pScreen
)
=
None
;
}
}
...
...
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