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
11f5ed28
Commit
11f5ed28
authored
Oct 13, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Fix some memory leaks.
parent
22e9da0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
mmsystem.c
dlls/winmm/mmsystem.c
+11
-7
No files found.
dlls/winmm/mmsystem.c
View file @
11f5ed28
...
...
@@ -2394,16 +2394,20 @@ static LPWINE_DRIVER DRIVER_OpenDriver16(LPCWSTR fn, LPCWSTR sn, LPARAM lParam2)
if
(
lpDrv
->
d
.
d16
.
hDriver16
==
0
)
{
cause
=
"Not a 16 bit driver"
;
goto
exit
;}
lpDrv
->
dwFlags
=
WINE_GDF_16BIT
;
TRACE
(
"=> %p
\n
"
,
lpDrv
);
return
lpDrv
;
exit:
HeapFree
(
GetProcessHeap
(),
0
,
lpDrv
);
HeapFree
(
GetProcessHeap
(),
0
,
fnA
);
HeapFree
(
GetProcessHeap
(),
0
,
snA
);
TRACE
(
"Unable to load 16 bit module %s[%s]: %s
\n
"
,
debugstr_w
(
fn
),
debugstr_w
(
sn
),
cause
);
return
NULL
;
if
(
cause
)
{
TRACE
(
"Unable to load 16 bit module %s[%s]: %s
\n
"
,
debugstr_w
(
fn
),
debugstr_w
(
sn
),
cause
);
HeapFree
(
GetProcessHeap
(),
0
,
lpDrv
);
return
NULL
;
}
TRACE
(
"=> %p
\n
"
,
lpDrv
);
return
lpDrv
;
}
/******************************************************************
...
...
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