diff options
author | Hoa V. Dinh <dinh.viet.hoa@gmail.com> | 2013-09-10 09:09:24 -0700 |
---|---|---|
committer | Hoa V. Dinh <dinh.viet.hoa@gmail.com> | 2013-09-10 09:09:29 -0700 |
commit | c21519e14b6096be73bad7641dc745789e0fd461 (patch) | |
tree | d47c1a72579c0fb061c613e7aafa082542c1d978 /src/async/pop | |
parent | 0dfa9a6b27b868e273b2ad6e8e9c5b5c7374b3e8 (diff) |
Fixed #371: don't retain header when no result is returned
Diffstat (limited to 'src/async/pop')
-rw-r--r-- | src/async/pop/MCPOPFetchHeaderOperation.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/async/pop/MCPOPFetchHeaderOperation.cc b/src/async/pop/MCPOPFetchHeaderOperation.cc index 3c6360a8..60a0e8a6 100644 --- a/src/async/pop/MCPOPFetchHeaderOperation.cc +++ b/src/async/pop/MCPOPFetchHeaderOperation.cc @@ -44,6 +44,8 @@ void POPFetchHeaderOperation::main() { ErrorCode error; mHeader = session()->session()->fetchHeader(mMessageIndex, &error); - mHeader->retain(); + if (mHeader != NULL) { + mHeader->retain(); + } setError(error); } |