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
155a325f
Commit
155a325f
authored
Aug 29, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Free the handle table on PROCESS_DETACH.
parent
ada5daa7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
handle.c
dlls/msi/handle.c
+10
-3
msi_main.c
dlls/msi/msi_main.c
+1
-0
msipriv.h
dlls/msi/msipriv.h
+1
-0
No files found.
dlls/msi/handle.c
View file @
155a325f
...
...
@@ -60,6 +60,13 @@ typedef struct msi_handle_info_t
static
msi_handle_info
*
msihandletable
=
NULL
;
static
int
msihandletable_size
=
0
;
void
msi_free_handle_table
(
void
)
{
msi_free
(
msihandletable
);
msihandletable
=
NULL
;
msihandletable_size
=
0
;
}
MSIHANDLE
alloc_msihandle
(
MSIOBJECTHDR
*
obj
)
{
MSIHANDLE
ret
=
0
;
...
...
@@ -80,12 +87,12 @@ MSIHANDLE alloc_msihandle( MSIOBJECTHDR *obj )
newsize
=
256
;
p
=
msi_alloc_zero
(
newsize
*
sizeof
(
msi_handle_info
));
}
else
{
else
{
newsize
=
msihandletable_size
*
2
;
p
=
msi_realloc_zero
(
msihandletable
,
newsize
*
sizeof
(
msi_handle_info
));
}
}
if
(
!
p
)
goto
out
;
msihandletable
=
p
;
...
...
dlls/msi/msi_main.c
View file @
155a325f
...
...
@@ -72,6 +72,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
break
;
case
DLL_PROCESS_DETACH
:
msi_dialog_unregister_class
();
msi_free_handle_table
();
break
;
}
return
TRUE
;
...
...
dlls/msi/msipriv.h
View file @
155a325f
...
...
@@ -306,6 +306,7 @@ extern void msiobj_addref(MSIOBJECTHDR *);
extern
int
msiobj_release
(
MSIOBJECTHDR
*
);
extern
void
msiobj_lock
(
MSIOBJECTHDR
*
);
extern
void
msiobj_unlock
(
MSIOBJECTHDR
*
);
extern
void
msi_free_handle_table
(
void
);
extern
void
free_cached_tables
(
MSIDATABASE
*
db
);
extern
void
msi_free_transforms
(
MSIDATABASE
*
db
);
...
...
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