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
17529582
Commit
17529582
authored
Jun 07, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr: Free type libraries on process detach (Valgrind).
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b6c96cf7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
evr.c
dlls/evr/evr.c
+0
-1
evr_private.h
dlls/evr/evr_private.h
+1
-0
main.c
dlls/evr/main.c
+9
-10
No files found.
dlls/evr/evr.c
View file @
17529582
...
...
@@ -24,7 +24,6 @@
#include "evr_private.h"
#include "d3d9.h"
#include "wine/strmbase.h"
#include "initguid.h"
#include "dxva2api.h"
...
...
dlls/evr/evr_private.h
View file @
17529582
...
...
@@ -21,6 +21,7 @@
#include "dshow.h"
#include "evr.h"
#include "wine/strmbase.h"
HRESULT
evr_filter_create
(
IUnknown
*
outer_unk
,
void
**
ppv
)
DECLSPEC_HIDDEN
;
...
...
dlls/evr/main.c
View file @
17529582
...
...
@@ -36,18 +36,17 @@ static HINSTANCE instance_evr;
BOOL
WINAPI
DllMain
(
HINSTANCE
instance
,
DWORD
reason
,
LPVOID
reserved
)
{
TRACE
(
"(%p, %d, %p)
\n
"
,
instance
,
reason
,
reserved
);
switch
(
reason
)
if
(
reason
==
DLL_WINE_PREATTACH
)
return
FALSE
;
/* prefer native version */
else
if
(
reason
==
DLL_PROCESS_ATTACH
)
{
case
DLL_WINE_PREATTACH
:
return
FALSE
;
/* prefer native version */
case
DLL_PROCESS_ATTACH
:
instance_evr
=
instance
;
DisableThreadLibraryCalls
(
instance
);
break
;
instance_evr
=
instance
;
DisableThreadLibraryCalls
(
instance
);
}
else
if
(
reason
==
DLL_PROCESS_DETACH
&&
!
reserved
)
{
strmbase_release_typelibs
()
;
}
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