ecere/net/Socket: Fixed mutex release
authorJerome St-Louis <jerome@ecere.com>
Tue, 27 Sep 2016 05:19:06 +0000 (01:19 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 21 Nov 2016 14:19:04 +0000 (09:19 -0500)
ecere/src/net/Socket.ec

index b462f7a..6736908 100644 (file)
@@ -791,8 +791,10 @@ private:
          gotEvent |= ProcessSocket(&rs, &ws, &es);
       }
       mutex.Wait();
+      this.mutex = null;
       delete this;
       mutex.Release();
+      delete mutex;
       return gotEvent;
    }