|
@@ -56,6 +56,12 @@ struct GoogleOnceInternal {
|
|
CRITICAL_SECTION critical_section;
|
|
CRITICAL_SECTION critical_section;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+GoogleOnceType::~GoogleOnceType()
|
|
|
|
+{
|
|
|
|
+ delete internal_;
|
|
|
|
+ internal_ = NULL;
|
|
|
|
+}
|
|
|
|
+
|
|
GoogleOnceType::GoogleOnceType() {
|
|
GoogleOnceType::GoogleOnceType() {
|
|
// internal_ may be non-NULL if Init() was already called.
|
|
// internal_ may be non-NULL if Init() was already called.
|
|
if (internal_ == NULL) internal_ = new GoogleOnceInternal;
|
|
if (internal_ == NULL) internal_ = new GoogleOnceInternal;
|