Author: fireball
Date: Sun Oct 24 09:24:02 2010
New Revision: 49254
URL:
http://svn.reactos.org/svn/reactos?rev=49254&view=rev
Log:
- Properly release all resources during thread and process termination.
Modified:
branches/arwinss/reactos/subsystems/win32/win32k/main/init.c
Modified: branches/arwinss/reactos/subsystems/win32/win32k/main/init.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win3…
==============================================================================
--- branches/arwinss/reactos/subsystems/win32/win32k/main/init.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/subsystems/win32/win32k/main/init.c [iso-8859-1] Sun Oct 24
09:24:02 2010
@@ -90,6 +90,10 @@
/* Destroy its classes */
destroy_process_classes(Win32Process);
+ /* Free allocated user handles */
+ free_process_user_handles(Win32Process);
+
+ /* Destroy idle event if it exists */
if (Win32Process->idle_event)
{
ObDereferenceObject(Win32Process->idle_event);
@@ -157,7 +161,7 @@
UserEnterExclusive();
cleanup_clipboard_thread(Win32Thread);
destroy_thread_windows(Win32Thread);
- //free_msg_queue(Win32Thread); // FIXME!
+ free_msg_queue(Win32Thread);
close_thread_desktop(Win32Thread);
UserLeave();