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
f566f38e
Commit
f566f38e
authored
Dec 06, 2011
by
Pierre Schweitzer
Committed by
Alexandre Julliard
Dec 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Fix memory leaks.
parent
783683be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
context.c
dlls/msctf/context.c
+3
-0
inputprocessor.c
dlls/msctf/inputprocessor.c
+6
-0
No files found.
dlls/msctf/context.c
View file @
f566f38e
...
@@ -1013,7 +1013,10 @@ static HRESULT WINAPI TextStoreACPSink_OnLockGranted(ITextStoreACPSink *iface,
...
@@ -1013,7 +1013,10 @@ static HRESULT WINAPI TextStoreACPSink_OnLockGranted(ITextStoreACPSink *iface,
sinkcookie
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
EditCookie
));
sinkcookie
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
EditCookie
));
if
(
!
sinkcookie
)
if
(
!
sinkcookie
)
{
HeapFree
(
GetProcessHeap
(),
0
,
cookie
);
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
cookie
->
lockType
=
dwLockFlags
;
cookie
->
lockType
=
dwLockFlags
;
cookie
->
pOwningContext
=
This
->
pContext
;
cookie
->
pOwningContext
=
This
->
pContext
;
...
...
dlls/msctf/inputprocessor.c
View file @
f566f38e
...
@@ -924,7 +924,10 @@ static HRESULT ProfilesEnumGuid_Constructor(IEnumGUID **ppOut)
...
@@ -924,7 +924,10 @@ static HRESULT ProfilesEnumGuid_Constructor(IEnumGUID **ppOut)
if
(
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
szwSystemTIPKey
,
0
,
NULL
,
0
,
if
(
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
szwSystemTIPKey
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
This
->
key
,
NULL
)
!=
ERROR_SUCCESS
)
KEY_READ
|
KEY_WRITE
,
NULL
,
&
This
->
key
,
NULL
)
!=
ERROR_SUCCESS
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
E_FAIL
;
return
E_FAIL
;
}
TRACE
(
"returning %p
\n
"
,
This
);
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
(
IEnumGUID
*
)
This
;
*
ppOut
=
(
IEnumGUID
*
)
This
;
...
@@ -1161,7 +1164,10 @@ static HRESULT EnumTfLanguageProfiles_Constructor(LANGID langid, IEnumTfLanguage
...
@@ -1161,7 +1164,10 @@ static HRESULT EnumTfLanguageProfiles_Constructor(LANGID langid, IEnumTfLanguage
if
(
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
szwSystemTIPKey
,
0
,
NULL
,
0
,
if
(
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
szwSystemTIPKey
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
This
->
tipkey
,
NULL
)
!=
ERROR_SUCCESS
)
KEY_READ
|
KEY_WRITE
,
NULL
,
&
This
->
tipkey
,
NULL
)
!=
ERROR_SUCCESS
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
E_FAIL
;
return
E_FAIL
;
}
TRACE
(
"returning %p
\n
"
,
This
);
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
(
IEnumTfLanguageProfiles
*
)
This
;
*
ppOut
=
(
IEnumTfLanguageProfiles
*
)
This
;
...
...
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