The object ref count must be initialized in the constructor

This commit is contained in:
Cary R 2012-12-17 17:59:20 -08:00
parent 4019525580
commit 317e53e784
1 changed files with 1 additions and 1 deletions

View File

@ -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);