Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
4beda167
Commit
4beda167
authored
Jun 07, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: 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
9e87c682
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
main.c
dlls/quartz/main.c
+4
-1
dispatch.c
dlls/strmbase/dispatch.c
+13
-0
strmbase.h
include/wine/strmbase.h
+1
-0
No files found.
dlls/quartz/main.c
View file @
4beda167
...
...
@@ -31,8 +31,11 @@ LONG object_locks = 0;
BOOL
WINAPI
DllMain
(
HINSTANCE
instance
,
DWORD
reason
,
void
*
reserved
)
{
if
(
reason
==
DLL_PROCESS_DETACH
)
if
(
reason
==
DLL_PROCESS_DETACH
&&
!
reserved
)
{
video_window_unregister_class
();
strmbase_release_typelibs
();
}
return
QUARTZ_DllMain
(
instance
,
reason
,
reserved
);
}
...
...
dlls/strmbase/dispatch.c
View file @
4beda167
...
...
@@ -68,3 +68,16 @@ HRESULT strmbase_get_typeinfo(enum strmbase_type_id tid, ITypeInfo **ret)
ITypeInfo_AddRef
(
*
ret
=
control_typeinfo
[
tid
]);
return
S_OK
;
}
void
strmbase_release_typelibs
(
void
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
control_typeinfo
);
++
i
)
{
if
(
control_typeinfo
[
i
])
ITypeInfo_Release
(
control_typeinfo
[
i
]);
}
if
(
control_typelib
)
ITypeLib_Release
(
control_typelib
);
}
include/wine/strmbase.h
View file @
4beda167
...
...
@@ -252,6 +252,7 @@ enum strmbase_type_id
};
HRESULT
strmbase_get_typeinfo
(
enum
strmbase_type_id
tid
,
ITypeInfo
**
typeinfo
);
void
strmbase_release_typelibs
(
void
);
struct
strmbase_passthrough
{
...
...
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