Module: wine Branch: master Commit: ed4c7fa95fa5ee0b2fef95b73bc9ffd1751b2602 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ed4c7fa95fa5ee0b2fef95b73b...
Author: Aric Stewart aric@codeweavers.com Date: Thu Oct 11 09:49:13 2012 -0500
msctf: Uninitialize context prior to releasing it.
---
dlls/msctf/documentmgr.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msctf/documentmgr.c b/dlls/msctf/documentmgr.c index 884b098..c9aebb2 100644 --- a/dlls/msctf/documentmgr.c +++ b/dlls/msctf/documentmgr.c @@ -186,14 +186,14 @@ static HRESULT WINAPI DocumentMgr_Pop(ITfDocumentMgr *iface, DWORD dwFlags) if (This->contextStack[0]) { ITfThreadMgrEventSink_OnPopContext(This->ThreadMgrSink,This->contextStack[0]); - ITfContext_Release(This->contextStack[0]); Context_Uninitialize(This->contextStack[0]); + ITfContext_Release(This->contextStack[0]); } if (This->contextStack[1]) { ITfThreadMgrEventSink_OnPopContext(This->ThreadMgrSink,This->contextStack[1]); - ITfContext_Release(This->contextStack[1]); Context_Uninitialize(This->contextStack[1]); + ITfContext_Release(This->contextStack[1]); } This->contextStack[0] = This->contextStack[1] = NULL; ITfThreadMgrEventSink_OnUninitDocumentMgr(This->ThreadMgrSink, iface); @@ -207,8 +207,8 @@ static HRESULT WINAPI DocumentMgr_Pop(ITfDocumentMgr *iface, DWORD dwFlags) return E_FAIL;
ITfThreadMgrEventSink_OnPopContext(This->ThreadMgrSink,This->contextStack[0]); - ITfContext_Release(This->contextStack[0]); Context_Uninitialize(This->contextStack[0]); + ITfContext_Release(This->contextStack[0]); This->contextStack[0] = This->contextStack[1]; This->contextStack[1] = NULL;