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
0e6fc4d8
Commit
0e6fc4d8
authored
Jun 07, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qedit: 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
4beda167
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
main.c
dlls/qedit/main.c
+12
-9
mediadet.c
dlls/qedit/mediadet.c
+0
-1
qedit_private.h
dlls/qedit/qedit_private.h
+1
-0
samplegrabber.c
dlls/qedit/samplegrabber.c
+0
-1
No files found.
dlls/qedit/main.c
View file @
0e6fc4d8
...
...
@@ -23,15 +23,18 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
qedit
);
static
HINSTANCE
instance
;
static
HINSTANCE
qedit_
instance
;
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
)
BOOL
WINAPI
DllMain
(
HINSTANCE
instance
,
DWORD
reason
,
void
*
reserved
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
instance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
break
;
if
(
reason
==
DLL_PROCESS_ATTACH
)
{
qedit_instance
=
instance
;
DisableThreadLibraryCalls
(
instance
);
}
else
if
(
reason
==
DLL_PROCESS_DETACH
&&
!
reserved
)
{
strmbase_release_typelibs
();
}
return
TRUE
;
}
...
...
@@ -243,7 +246,7 @@ HRESULT WINAPI DllRegisterServer(void)
IFilterMapper2
*
mapper
;
HRESULT
hr
;
if
(
FAILED
(
hr
=
__wine_register_resources
(
instance
)))
if
(
FAILED
(
hr
=
__wine_register_resources
(
qedit_instance
)))
return
hr
;
if
(
FAILED
(
hr
=
CoCreateInstance
(
&
CLSID_FilterMapper2
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
@@ -267,7 +270,7 @@ HRESULT WINAPI DllUnregisterServer(void)
IFilterMapper2
*
mapper
;
HRESULT
hr
;
if
(
FAILED
(
hr
=
__wine_unregister_resources
(
instance
)))
if
(
FAILED
(
hr
=
__wine_unregister_resources
(
qedit_instance
)))
return
hr
;
if
(
FAILED
(
hr
=
CoCreateInstance
(
&
CLSID_FilterMapper2
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
dlls/qedit/mediadet.c
View file @
0e6fc4d8
...
...
@@ -28,7 +28,6 @@
#include "ole2.h"
#include "qedit_private.h"
#include "wine/strmbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
qedit
);
...
...
dlls/qedit/qedit_private.h
View file @
0e6fc4d8
...
...
@@ -32,6 +32,7 @@
#include "winuser.h"
#include "dshow.h"
#include "qedit.h"
#include "wine/strmbase.h"
HRESULT
timeline_create
(
IUnknown
*
outer
,
IUnknown
**
out
)
DECLSPEC_HIDDEN
;
HRESULT
media_detector_create
(
IUnknown
*
outer
,
IUnknown
**
out
)
DECLSPEC_HIDDEN
;
...
...
dlls/qedit/samplegrabber.c
View file @
0e6fc4d8
...
...
@@ -29,7 +29,6 @@
#include "qedit_private.h"
#include "wine/debug.h"
#include "wine/strmbase.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
qedit
);
...
...
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