The object ref count must be initialized in the constructor
This commit is contained in:
parent
4019525580
commit
317e53e784
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue