ksys/act: Fix ~ActorLinkConstDataAccess

This commit is contained in:
Léo Lam 2020-08-20 11:02:45 +02:00
parent 0dc0752530
commit 7e96f826c0
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 5 additions and 2 deletions

View File

@ -4,8 +4,11 @@
namespace ksys::act {
ActorLinkConstDataAccess::~ActorLinkConstDataAccess() {
if (mAcquired)
acquire(nullptr);
if (mAcquired && mProc)
mProc->release();
mAcquired = false;
mProc = nullptr;
}
bool ActorLinkConstDataAccess::acquire(BaseProc* proc) {