Spawn.vala
authorAlan Knowles <alan@roojs.com>
Mon, 29 Aug 2016 09:01:35 +0000 (17:01 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 29 Aug 2016 09:01:35 +0000 (17:01 +0800)
Spawn.vala

index 0ee0486..2c13854 100644 (file)
@@ -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();
     }