fix(addressbook): close DB connection after DAV query

This commit is contained in:
Francis Lachapelle committed 2022-02-01 10:14:37 -05:00
1 parent 7c81e3acec
commit 348a79c795
4 files changed
+24 -7

No files matched your search

+7 -1
View File
@@ -1,6 +1,6 @@
/* LDAPSource.m - this file is part of SOGo
*
* Copyright (C) 2007-2021 Inverse inc.
* Copyright (C) 2007-2022 Inverse inc.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -497,6 +497,12 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
return (NGLdapConnection *)[self connection];
}
- (void) releaseConnection: (id) connection
{
if ([(NGLdapConnection *)connection isBound])
[(NGLdapConnection *)connection unbind];
}
- (NSString *) domain
{
return _domain;