From 1d45023f3ea9d77e56cfdd31e6ea2dd83d5122ac Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sat, 4 Feb 2017 22:47:38 +0400 Subject: [PATCH] assert on Release (#1317) --- src/net.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net.h b/src/net.h index 39b76d38f..8a39577b1 100644 --- a/src/net.h +++ b/src/net.h @@ -480,6 +480,7 @@ public: void Release() { nRefCount--; + assert(nRefCount >= 0); }