IOSAD-121 Only release engine sessions != nil. IOSAD-121
authorDirk Zimmermann <dz@pep.security>
Wed, 24 Jul 2019 15:07:24 +0200
branchIOSAD-121
changeset 1103d6219082cdf4
parent 1102 54cc9d70c27d
child 1104 802191d6d984
IOSAD-121 Only release engine sessions != nil.
pEpObjCAdapter/PEPInternalSession.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession.m	Wed Jul 24 15:06:04 2019 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession.m	Wed Jul 24 15:07:24 2019 +0200
     1.3 @@ -48,7 +48,9 @@
     1.4  
     1.5  - (void)dealloc
     1.6  {
     1.7 -    release(_session);
     1.8 +    if (_session != nil) {
     1.9 +        release(_session);
    1.10 +    }
    1.11  }
    1.12  
    1.13  #pragma mark - CONFIG