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
ed4c7fa9
Commit
ed4c7fa9
authored
Oct 11, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Uninitialize context prior to releasing it.
parent
478f0b66
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
documentmgr.c
dlls/msctf/documentmgr.c
+3
-3
No files found.
dlls/msctf/documentmgr.c
View file @
ed4c7fa9
...
...
@@ -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
;
...
...
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