Commit 35356002 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Zero out an invalidated runningObjectTableInstance pointer.

parent 9c932e53
...@@ -70,7 +70,7 @@ typedef struct RunningObjectTableImpl{ ...@@ -70,7 +70,7 @@ typedef struct RunningObjectTableImpl{
} RunningObjectTableImpl; } RunningObjectTableImpl;
RunningObjectTableImpl* runningObjectTableInstance=0; static RunningObjectTableImpl* runningObjectTableInstance = NULL;
/* IRunningObjectTable prototype functions : */ /* IRunningObjectTable prototype functions : */
/* IUnknown functions*/ /* IUnknown functions*/
...@@ -153,7 +153,7 @@ ULONG WINAPI RunningObjectTableImpl_AddRef(IRunningObjectTable* iface) ...@@ -153,7 +153,7 @@ ULONG WINAPI RunningObjectTableImpl_AddRef(IRunningObjectTable* iface)
/*********************************************************************** /***********************************************************************
* RunningObjectTable_Initialize * RunningObjectTable_Initialize
*/ */
HRESULT WINAPI RunningObjectTableImpl_Destroy() HRESULT WINAPI RunningObjectTableImpl_Destroy(void)
{ {
TRACE("()\n"); TRACE("()\n");
...@@ -165,6 +165,7 @@ HRESULT WINAPI RunningObjectTableImpl_Destroy() ...@@ -165,6 +165,7 @@ HRESULT WINAPI RunningObjectTableImpl_Destroy()
/* free the ROT structure memory */ /* free the ROT structure memory */
HeapFree(GetProcessHeap(),0,runningObjectTableInstance); HeapFree(GetProcessHeap(),0,runningObjectTableInstance);
runningObjectTableInstance = NULL;
return S_OK; return S_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment