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
a39dec21
Commit
a39dec21
authored
Aug 01, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Release typelib in PROCESS_DETACH.
parent
b2395e49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
main.c
dlls/mshtml/main.c
+19
-13
No files found.
dlls/mshtml/main.c
View file @
a39dec21
...
...
@@ -86,6 +86,20 @@ static void thread_detach(void)
{
thread_data_t
*
thread_data
;
thread_data
=
get_thread_data
(
FALSE
);
if
(
!
thread_data
)
return
;
if
(
thread_data
->
thread_hwnd
)
DestroyWindow
(
thread_data
->
thread_hwnd
);
mshtml_free
(
thread_data
);
}
static
void
process_detach
(
void
)
{
close_gecko
();
if
(
typelib
)
{
unsigned
i
;
...
...
@@ -96,14 +110,10 @@ static void thread_detach(void)
ITypeLib_Release
(
typelib
);
}
thread_data
=
get_thread_data
(
FALSE
);
if
(
!
thread_data
)
return
;
if
(
thread_data
->
thread_hwnd
)
DestroyWindow
(
thread_data
->
thread_hwnd
);
mshtml_free
(
thread_data
);
if
(
shdoclc
)
FreeLibrary
(
shdoclc
);
if
(
mshtml_tls
)
TlsFree
(
mshtml_tls
);
}
HINSTANCE
get_shdoclc
(
void
)
...
...
@@ -124,11 +134,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
hInst
=
hInstDLL
;
break
;
case
DLL_PROCESS_DETACH
:
close_gecko
();
if
(
shdoclc
)
FreeLibrary
(
shdoclc
);
if
(
mshtml_tls
)
TlsFree
(
mshtml_tls
);
process_detach
();
break
;
case
DLL_THREAD_DETACH
:
thread_detach
();
...
...
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