[PATCH 1/4] localspl: unload only portmonitors in monitor_unloadall
Detlef Riekenberg
wine.dev at web.de
Tue Sep 29 06:17:02 CDT 2009
---
dlls/localspl/provider.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/localspl/provider.c b/dlls/localspl/provider.c
index 51bf2f9..7bfc32d 100644
--- a/dlls/localspl/provider.c
+++ b/dlls/localspl/provider.c
@@ -346,7 +346,7 @@ static void monitor_unload(monitor_t * pm)
/******************************************************************
* monitor_unloadall [internal]
*
- * release all printmonitors and unload them from memory, when needed
+ * release all registered printmonitors and unload them from memory, when needed
*
*/
@@ -359,7 +359,8 @@ static void monitor_unloadall(void)
/* iterate through the list, with safety against removal */
LIST_FOR_EACH_ENTRY_SAFE(pm, next, &monitor_handles, monitor_t, entry)
{
- monitor_unload(pm);
+ /* skip monitorui dlls */
+ if (pm->monitor) monitor_unload(pm);
}
LeaveCriticalSection(&monitor_handles_cs);
}
--
1.5.4.3
--=-b5dCqAXqRqqM5T189jfS--
More information about the wine-patches
mailing list