fixing clang error
This commit is contained in:
1 parent
8a43ddfc82
commit
a8c5e2edce
5 files changed
+10
-7
No files matched your search
@@ -225,7 +225,7 @@ class HsaRsrcFactory {
|
||||
|
||||
static void Destroy() {
|
||||
std::lock_guard<mutex_t> lck(mutex_);
|
||||
if (instance_) delete instance_;
|
||||
if (instance_) delete instance_.load();
|
||||
instance_ = NULL;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -90,7 +90,7 @@ class Logger {
|
||||
|
||||
static void Destroy() {
|
||||
std::lock_guard<mutex_t> lck(mutex_);
|
||||
if (instance_ != NULL) delete instance_;
|
||||
if (instance_ != NULL) delete instance_.load();
|
||||
instance_ = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user