From 317e53e784d7f9085a8cc8310b0b1aed372b4a84 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 17 Dec 2012 17:59:20 -0800 Subject: [PATCH] The object ref count must be initialized in the constructor --- vvp/vvp_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vvp/vvp_object.h b/vvp/vvp_object.h index 3aff181b1..5509d39fe 100644 --- a/vvp/vvp_object.h +++ b/vvp/vvp_object.h @@ -29,7 +29,7 @@ */ class vvp_object { public: - inline vvp_object() { total_active_cnt_ += 1; } + inline vvp_object() { ref_cnt_ = 0; total_active_cnt_ += 1; } virtual ~vvp_object() =0; static void cleanup(void);