# HG changeset patch # User Daniel Atallah # Date 1175456373 0 # Node ID c0e33c71e9009204b544e084e61f23c466f547ae # Parent a741ec4dafa0160b129e7270c39f4b7b97ad2317 Avoid trying to unlock the mutex after it has been destroyed. diff -r a741ec4dafa0 -r c0e33c71e900 libpurple/win32/giowin32.c --- 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