Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
15981:a741ec4dafa0 | 15982:c0e33c71e900 |
---|---|
396 channel->running = FALSE; | 396 channel->running = FALSE; |
397 if (channel->debug) | 397 if (channel->debug) |
398 g_print ("select_thread %#x: got error, setting data_avail\n", | 398 g_print ("select_thread %#x: got error, setting data_avail\n", |
399 channel->thread_id); | 399 channel->thread_id); |
400 SetEvent (channel->data_avail_event); | 400 SetEvent (channel->data_avail_event); |
401 UNLOCK (channel->mutex); | |
401 g_io_channel_unref ((GIOChannel *)channel); | 402 g_io_channel_unref ((GIOChannel *)channel); |
402 UNLOCK (channel->mutex); | |
403 | 403 |
404 /* No need to call _endthreadex(), the actual thread starter routine | 404 /* No need to call _endthreadex(), the actual thread starter routine |
405 * in MSVCRT (see crt/src/threadex.c:_threadstartex) calls | 405 * in MSVCRT (see crt/src/threadex.c:_threadstartex) calls |
406 * _endthreadex() for us. | 406 * _endthreadex() for us. |
407 */ | 407 */ |