1
0
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:
sudden6 2018-07-15 09:14:24 +02:00
parent 7fa2dfead5
commit d776e6c34f
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -91,8 +91,7 @@ void ProfileLocker::unlock()
return;
lockfile->unlock();
delete lockfile.release();
lockfile = nullptr;
lockfile.reset();
curLockName.clear();
}