summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-10-27 13:29:16 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-10-27 13:29:16 +0000
commitb46bc1002ea3a1282708e6c482cb2594af3162a0 (patch)
treea67fa9e1d92f2739e0a2ec957fb0003f4fa0a848
parent33d7a85dd7b083e94ff60b4bbc19cd9ecfdfb1d5 (diff)
downloadlibgsystem-b46bc1002ea3a1282708e6c482cb2594af3162a0.tar.gz
subprocess: Fix a potential GCancellable leak
-rw-r--r--src/gsystem-subprocess.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gsystem-subprocess.c b/src/gsystem-subprocess.c
index 4ec680f..0248072 100644
--- a/src/gsystem-subprocess.c
+++ b/src/gsystem-subprocess.c
@@ -599,6 +599,7 @@ gs_subprocess_on_child_exited (GPid pid,
g_simple_async_result_complete (data->result);
+ g_clear_object (&data->cancellable);
g_object_unref (data->result);
g_object_unref (data->self);
g_free (data);