mirror of
https://github.com/darlinghq/fmdb.git
synced 2025-02-22 14:53:15 +00:00
Merge pull request #278 from scelis/fix_block_warnings
Fix CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warnings
This commit is contained in:
commit
02152a125d
@ -108,10 +108,10 @@ static const void * const kDispatchQueueSpecificKey = &kDispatchQueueSpecificKey
|
||||
|
||||
- (void)close {
|
||||
FMDBRetain(self);
|
||||
dispatch_sync(_queue, ^() {
|
||||
[_db close];
|
||||
dispatch_sync(_queue, ^() {
|
||||
[self->_db close];
|
||||
FMDBRelease(_db);
|
||||
_db = 0x00;
|
||||
self->_db = 0x00;
|
||||
});
|
||||
FMDBRelease(self);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user