Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
538b2474
Commit
538b2474
authored
Oct 15, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Free client-side user handles at process exit.
parent
09d1c52f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
process.c
server/process.c
+1
-0
user.c
server/user.c
+11
-1
user.h
server/user.h
+1
-0
No files found.
server/process.c
View file @
538b2474
...
...
@@ -645,6 +645,7 @@ static void process_killed( struct process *process )
free
(
dll
);
}
destroy_process_classes
(
process
);
free_process_user_handles
(
process
);
remove_process_locks
(
process
);
set_process_startup_state
(
process
,
STARTUP_ABORTED
);
finish_process_tracing
(
process
);
...
...
server/user.c
View file @
538b2474
...
...
@@ -166,10 +166,20 @@ void *next_user_handle( user_handle_t *handle, enum user_object type )
return
NULL
;
}
/* free client-side user handles managed by the process */
void
free_process_user_handles
(
struct
process
*
process
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
nb_handles
;
i
++
)
if
(
handles
[
i
].
type
==
USER_CLIENT
&&
handles
[
i
].
ptr
==
process
)
free_user_entry
(
&
handles
[
i
]
);
}
/* allocate an arbitrary user handle */
DECL_HANDLER
(
alloc_user_handle
)
{
reply
->
handle
=
alloc_user_handle
(
NULL
,
USER_CLIENT
);
reply
->
handle
=
alloc_user_handle
(
current
->
process
,
USER_CLIENT
);
}
...
...
server/user.h
View file @
538b2474
...
...
@@ -72,6 +72,7 @@ extern void *get_user_object_handle( user_handle_t *handle, enum user_object typ
extern
user_handle_t
get_user_full_handle
(
user_handle_t
handle
);
extern
void
*
free_user_handle
(
user_handle_t
handle
);
extern
void
*
next_user_handle
(
user_handle_t
*
handle
,
enum
user_object
type
);
extern
void
free_process_user_handles
(
struct
process
*
process
);
/* clipboard functions */
...
...
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