[PATCH 4/4] ole32: Re-enable the code that unregisters interfaces
with the RPC runtime.
Robert Shearman
rob at codeweavers.com
Mon Nov 13 05:55:56 CST 2006
---
dlls/ole32/rpc.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
This fixes several memory leaks and is generally the right thing to do.
-------------- next part --------------
diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c
index 368a6ba..26a139e 100644
--- a/dlls/ole32/rpc.c
+++ b/dlls/ole32/rpc.c
@@ -669,12 +669,9 @@ void RPC_UnregisterInterface(REFIID riid
{
if (!--rif->refs)
{
-#if 0 /* this is a stub in builtin and spams the console with FIXME's */
- IID iid = *riid; /* RpcServerUnregisterIf doesn't take const IID */
- RpcServerUnregisterIf((RPC_IF_HANDLE)&rif->If, &iid, 0);
+ RpcServerUnregisterIf((RPC_IF_HANDLE)&rif->If, NULL, TRUE);
list_remove(&rif->entry);
HeapFree(GetProcessHeap(), 0, rif);
-#endif
}
break;
}
More information about the wine-patches
mailing list