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
433639f7
Commit
433639f7
authored
Nov 10, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Free the memory associated with the open DLL list on unloading of ole32.
parent
1dc91c41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
compobj.c
dlls/ole32/compobj.c
+16
-0
No files found.
dlls/ole32/compobj.c
View file @
433639f7
...
...
@@ -965,6 +965,21 @@ static void COMPOBJ_DllList_ReleaseRef(OpenDll *entry, BOOL free_entry)
}
}
/* frees memory associated with active dll list */
static
void
COMPOBJ_DllList_Free
(
void
)
{
OpenDll
*
entry
,
*
cursor2
;
EnterCriticalSection
(
&
csOpenDllList
);
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
cursor2
,
&
openDllList
,
OpenDll
,
entry
)
{
list_remove
(
&
entry
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
->
library_name
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
);
}
LeaveCriticalSection
(
&
csOpenDllList
);
}
/******************************************************************************
* CoBuildVersion [OLE32.@]
* CoBuildVersion [COMPOBJ.1]
...
...
@@ -3721,6 +3736,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
OLEDD_UnInitialize
();
COMPOBJ_UninitProcess
();
RPC_UnregisterAllChannelHooks
();
COMPOBJ_DllList_Free
();
OLE32_hInstance
=
0
;
break
;
...
...
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