couchbase/couchbase-lite-ios — pull request #266 by mz2 (2014-02-27 21:25:35+00:00)
Title: Fixes a crash in CBLMultipartDocumentReader.m caused by the stream outliving the CBLMultipartDocumentReader that is its delegate

Fixes a crash in CBLMultipartDocumentReader.m caused by the stream outliving the CBLMultipartDocumentReader that is its delegate. Solved by adding a strong reference to the reader in its completion handler and breaking the retain loop in the end of the completion handler block.