The object ref count must be initialized in the constructor

This commit is contained in:
Cary R
2012-12-17 18:00:54 -08:00
parent 4019525580
commit 317e53e784
+1 -1
View File
@@ -29,7 +29,7 @@
*/ */
class vvp_object { class vvp_object {
public: public:
inline vvp_object() { total_active_cnt_ += 1; } inline vvp_object() { ref_cnt_ = 0; total_active_cnt_ += 1; }
virtual ~vvp_object() =0; virtual ~vvp_object() =0;
static void cleanup(void); static void cleanup(void);