Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8cc3adea
Commit
8cc3adea
authored
Sep 12, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Sep 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Free the memory for a registered interface that is in use and when…
rpcrt4: Free the memory for a registered interface that is in use and when WaitForCallsToComplete is 0.
parent
be3c3a52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
rpc_server.c
dlls/rpcrt4/rpc_server.c
+5
-2
rpc_server.h
dlls/rpcrt4/rpc_server.h
+1
-0
No files found.
dlls/rpcrt4/rpc_server.c
View file @
8cc3adea
...
...
@@ -147,10 +147,11 @@ static RpcServerInterface* RPCRT4_find_interface(UUID* object,
static
void
RPCRT4_release_server_interface
(
RpcServerInterface
*
sif
)
{
if
(
!
InterlockedDecrement
(
&
sif
->
CurrentCalls
)
&&
sif
->
CallsCompletedEvent
)
{
sif
->
Delete
)
{
/* sif must have been removed from server_interfaces before
* CallsCompletedEvent is set */
SetEvent
(
sif
->
CallsCompletedEvent
);
if
(
sif
->
CallsCompletedEvent
)
SetEvent
(
sif
->
CallsCompletedEvent
);
HeapFree
(
GetProcessHeap
(),
0
,
sif
);
}
}
...
...
@@ -888,8 +889,10 @@ RPC_STATUS WINAPI RpcServerUnregisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid
if
((
!
IfSpec
||
!
memcmp
(
&
If
->
InterfaceId
,
&
cif
->
If
->
InterfaceId
,
sizeof
(
RPC_SYNTAX_IDENTIFIER
)))
&&
UuidEqual
(
MgrTypeUuid
,
&
cif
->
MgrTypeUuid
,
&
status
))
{
list_remove
(
&
cif
->
entry
);
TRACE
(
"unregistering cif %p
\n
"
,
cif
);
if
(
cif
->
CurrentCalls
)
{
completed
=
FALSE
;
cif
->
Delete
=
TRUE
;
if
(
WaitForCallsToComplete
)
cif
->
CallsCompletedEvent
=
event
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
}
...
...
dlls/rpcrt4/rpc_server.h
View file @
8cc3adea
...
...
@@ -73,6 +73,7 @@ typedef struct _RpcServerInterface
/* set when unregistering interface to let the caller of
* RpcServerUnregisterIf* know that all calls have finished */
HANDLE
CallsCompletedEvent
;
BOOL
Delete
;
/* delete when the last call finishes */
}
RpcServerInterface
;
void
RPCRT4_new_client
(
RpcConnection
*
conn
);
...
...
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