diff libpurple/win32/giowin32.c @ 15982:c0e33c71e900

Avoid trying to unlock the mutex after it has been destroyed.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 01 Apr 2007 19:39:33 +0000
parents 32c366eeeb99
children 6b4e778ee4b4
line wrap: on
line diff
--- a/libpurple/win32/giowin32.c	Sun Apr 01 17:38:16 2007 +0000
+++ b/libpurple/win32/giowin32.c	Sun Apr 01 19:39:33 2007 +0000
@@ -398,8 +398,8 @@
     g_print ("select_thread %#x: got error, setting data_avail\n",
 	     channel->thread_id);
   SetEvent (channel->data_avail_event);
+  UNLOCK (channel->mutex);
   g_io_channel_unref ((GIOChannel *)channel);
-  UNLOCK (channel->mutex);
 
   /* No need to call _endthreadex(), the actual thread starter routine
    * in MSVCRT (see crt/src/threadex.c:_threadstartex) calls