Be more careful to break retain cycles

This commit is contained in:
rfm 2024-12-19 16:51:21 +00:00
parent d5da27bcbc
commit 5a150d8fa2
2 changed files with 15 additions and 13 deletions

View file

@ -431,6 +431,7 @@ typedef struct
this->_delegate = nil;
[o connection: self didFailWithError: error];
DESTROY(o);
[this->_protocol stopLoading];
DESTROY(this->_protocol);
}
@ -511,6 +512,7 @@ typedef struct
this->_delegate = nil;
[o connectionDidFinishLoading: self];
DESTROY(o);
[this->_protocol stopLoading];
DESTROY(this->_protocol);
}