projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a732f29
)
subprocess: Init and clear the mutex
author
Olivier Crête
<olivier.crete@collabora.com>
Sat, 15 Feb 2014 07:23:29 +0000
(
02:23
-0500)
committer
Olivier Crête
<olivier.crete@collabora.com>
Mon, 17 Feb 2014 00:59:44 +0000
(19:59 -0500)
Fixes the leak of the GMutexImpl allocated inside the first call to g_mutex_lock()
on an uninitialized GMutex.
https://bugzilla.gnome.org/show_bug.cgi?id=724401
gio/gsubprocess.c
patch
|
blob
|
history
diff --git
a/gio/gsubprocess.c
b/gio/gsubprocess.c
index
01470cc
..
c0f8367
100644
(file)
--- a/
gio/gsubprocess.c
+++ b/
gio/gsubprocess.c
@@
-610,12
+610,15
@@
g_subprocess_finalize (GObject *object)
g_clear_object (&self->stderr_pipe);
g_strfreev (self->argv);
+ g_mutex_clear (&self->pending_waits_lock);
+
G_OBJECT_CLASS (g_subprocess_parent_class)->finalize (object);
}
static void
g_subprocess_init (GSubprocess *self)
{
+ g_mutex_init (&self->pending_waits_lock);
}
static void