Fix a write to freed memory: Unlock the channel's mutex before unrefing

2004-12-06  Tor Lillqvist  <tml@iki.fi>

	* glib/giowin32.c (g_io_win32_finalize): Fix a write to freed
	memory: Unlock the channel's mutex before unrefing the channel.
This commit is contained in:
Tor Lillqvist 2004-12-06 23:43:43 +00:00 committed by Tor Lillqvist
parent cff51f1f0b
commit cf6e3acdb5
6 changed files with 26 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-12-06 Tor Lillqvist <tml@iki.fi>
* glib/giowin32.c (g_io_win32_finalize): Fix a write to freed
memory: Unlock the channel's mutex before unrefing the channel.
2004-12-06 Matthias Clasen <mclasen@redhat.com>
* configure.in: Remove a no longer needed hack for

View File

@ -1,3 +1,8 @@
2004-12-06 Tor Lillqvist <tml@iki.fi>
* glib/giowin32.c (g_io_win32_finalize): Fix a write to freed
memory: Unlock the channel's mutex before unrefing the channel.
2004-12-06 Matthias Clasen <mclasen@redhat.com>
* configure.in: Remove a no longer needed hack for

View File

@ -1,3 +1,8 @@
2004-12-06 Tor Lillqvist <tml@iki.fi>
* glib/giowin32.c (g_io_win32_finalize): Fix a write to freed
memory: Unlock the channel's mutex before unrefing the channel.
2004-12-06 Matthias Clasen <mclasen@redhat.com>
* configure.in: Remove a no longer needed hack for

View File

@ -1,3 +1,8 @@
2004-12-06 Tor Lillqvist <tml@iki.fi>
* glib/giowin32.c (g_io_win32_finalize): Fix a write to freed
memory: Unlock the channel's mutex before unrefing the channel.
2004-12-06 Matthias Clasen <mclasen@redhat.com>
* configure.in: Remove a no longer needed hack for

View File

@ -1,3 +1,8 @@
2004-12-06 Tor Lillqvist <tml@iki.fi>
* glib/giowin32.c (g_io_win32_finalize): Fix a write to freed
memory: Unlock the channel's mutex before unrefing the channel.
2004-12-06 Matthias Clasen <mclasen@redhat.com>
* configure.in: Remove a no longer needed hack for

View File

@ -737,8 +737,8 @@ g_io_win32_finalize (GSource *source)
send (channel->reset_send, send_buffer, sizeof (send_buffer), 0);
}
g_io_channel_unref (watch->channel);
UNLOCK (channel->mutex);
g_io_channel_unref (watch->channel);
}
GSourceFuncs g_io_watch_funcs = {