From: Alan Knowles Date: Mon, 29 Aug 2016 09:01:35 +0000 (+0800) Subject: Spawn.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=a6c480470962be00961f233c5964678707cedefb Spawn.vala --- diff --git a/Spawn.vala b/Spawn.vala index 0ee04860..2c13854b 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -365,7 +365,7 @@ public class Spawn : Object private void tidyup() { - this.unref(); + if (this.pid > -1) { Process.close_pid(this.pid); // hopefully kills it.. this.pid = -1; @@ -386,7 +386,7 @@ public class Spawn : Object //if (this.out_src > -1 ) GLib.source_remove(this.out_src); this.err_src = -1; this.out_src = -1; - + this.unref(); }