mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix: fix memory leak in CoreAV and missuse of std::uniqe_ptr
This commit is contained in:
parent
7fa2dfead5
commit
d776e6c34f
@ -91,8 +91,7 @@ void ProfileLocker::unlock()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
lockfile->unlock();
|
lockfile->unlock();
|
||||||
delete lockfile.release();
|
lockfile.reset();
|
||||||
lockfile = nullptr;
|
|
||||||
curLockName.clear();
|
curLockName.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user