diff --git a/helper/object_helper.h b/helper/object_helper.h index f754863bf4a6414104c47718d9363c5a40fb890f..35e3da15b994d4a355177ab866ce4576bf9cd7db 100644 --- a/helper/object_helper.h +++ b/helper/object_helper.h @@ -43,6 +43,7 @@ public: delete[] value; } else { delete value; + value = nullptr; } } }; @@ -60,6 +61,7 @@ public: delete[] data_; } else { delete data_; + data_ = nullptr; } }