Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6e9728be
Commit
6e9728be
authored
Dec 08, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse.drv: Don't free memory at process exit.
parent
505455de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
mmdevdrv.c
dlls/winepulse.drv/mmdevdrv.c
+9
-2
No files found.
dlls/winepulse.drv/mmdevdrv.c
View file @
6e9728be
...
@@ -72,10 +72,12 @@ static WCHAR drv_key_devicesW[256];
...
@@ -72,10 +72,12 @@ static WCHAR drv_key_devicesW[256];
BOOL
WINAPI
DllMain
(
HINSTANCE
dll
,
DWORD
reason
,
void
*
reserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
dll
,
DWORD
reason
,
void
*
reserved
)
{
{
if
(
reason
==
DLL_PROCESS_ATTACH
)
{
WCHAR
buf
[
MAX_PATH
];
WCHAR
buf
[
MAX_PATH
];
WCHAR
*
filename
;
WCHAR
*
filename
;
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
dll
);
DisableThreadLibraryCalls
(
dll
);
if
(
__wine_init_unix_call
())
if
(
__wine_init_unix_call
())
return
FALSE
;
return
FALSE
;
...
@@ -87,12 +89,17 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
...
@@ -87,12 +89,17 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
swprintf
(
drv_key_devicesW
,
ARRAY_SIZE
(
drv_key_devicesW
),
swprintf
(
drv_key_devicesW
,
ARRAY_SIZE
(
drv_key_devicesW
),
L"Software
\\
Wine
\\
Drivers
\\
%s
\\
devices"
,
filename
);
L"Software
\\
Wine
\\
Drivers
\\
%s
\\
devices"
,
filename
);
}
else
if
(
reason
==
DLL_PROCESS_DETACH
)
{
break
;
case
DLL_PROCESS_DETACH
:
if
(
!
reserved
)
{
struct
device_cache
*
device
,
*
device_next
;
struct
device_cache
*
device
,
*
device_next
;
LIST_FOR_EACH_ENTRY_SAFE
(
device
,
device_next
,
&
g_devices_cache
,
struct
device_cache
,
entry
)
LIST_FOR_EACH_ENTRY_SAFE
(
device
,
device_next
,
&
g_devices_cache
,
struct
device_cache
,
entry
)
free
(
device
);
free
(
device
);
}
}
break
;
}
return
TRUE
;
return
TRUE
;
}
}
...
...
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