changeset 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 a741ec4dafa0
children 20c0ab6ea008
files libpurple/win32/giowin32.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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