projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a write to freed memory: Unlock the channel's mutex before unrefing
[platform/upstream/glib.git]
/
glib
/
giowin32.c
diff --git
a/glib/giowin32.c
b/glib/giowin32.c
index
9bffc05
..
72fe44e
100644
(file)
--- a/
glib/giowin32.c
+++ b/
glib/giowin32.c
@@
-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 = {