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
e606551c
Commit
e606551c
authored
Jan 14, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Release typeinfos and typelib on dll unload.
parent
3816e44d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
main.c
dlls/winhttp/main.c
+1
-0
request.c
dlls/winhttp/request.c
+12
-0
winhttp_private.h
dlls/winhttp/winhttp_private.h
+1
-0
No files found.
dlls/winhttp/main.c
View file @
e606551c
...
@@ -48,6 +48,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
...
@@ -48,6 +48,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
case
DLL_PROCESS_DETACH
:
case
DLL_PROCESS_DETACH
:
if
(
lpv
)
break
;
if
(
lpv
)
break
;
netconn_unload
();
netconn_unload
();
release_typelib
();
break
;
break
;
}
}
return
TRUE
;
return
TRUE
;
...
...
dlls/winhttp/request.c
View file @
e606551c
...
@@ -2758,6 +2758,18 @@ static HRESULT get_typeinfo( enum type_id tid, ITypeInfo **ret )
...
@@ -2758,6 +2758,18 @@ static HRESULT get_typeinfo( enum type_id tid, ITypeInfo **ret )
return
S_OK
;
return
S_OK
;
}
}
void
release_typelib
(
void
)
{
unsigned
i
;
for
(
i
=
0
;
i
<
sizeof
(
winhttp_typeinfo
)
/
sizeof
(
*
winhttp_typeinfo
);
i
++
)
if
(
winhttp_typeinfo
[
i
])
ITypeInfo_Release
(
winhttp_typeinfo
[
i
]);
if
(
winhttp_typelib
)
ITypeLib_Release
(
winhttp_typelib
);
}
static
HRESULT
WINAPI
winhttp_request_GetTypeInfo
(
static
HRESULT
WINAPI
winhttp_request_GetTypeInfo
(
IWinHttpRequest
*
iface
,
IWinHttpRequest
*
iface
,
UINT
index
,
UINT
index
,
...
...
dlls/winhttp/winhttp_private.h
View file @
e606551c
...
@@ -283,6 +283,7 @@ BOOL set_server_for_hostname( connect_t *, LPCWSTR, INTERNET_PORT ) DECLSPEC_HID
...
@@ -283,6 +283,7 @@ BOOL set_server_for_hostname( connect_t *, LPCWSTR, INTERNET_PORT ) DECLSPEC_HID
void
destroy_authinfo
(
struct
authinfo
*
)
DECLSPEC_HIDDEN
;
void
destroy_authinfo
(
struct
authinfo
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WinHttpRequest_create
(
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WinHttpRequest_create
(
void
**
)
DECLSPEC_HIDDEN
;
void
release_typelib
(
void
)
DECLSPEC_HIDDEN
;
static
inline
void
*
heap_alloc
(
SIZE_T
size
)
static
inline
void
*
heap_alloc
(
SIZE_T
size
)
{
{
...
...
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