Add an NSAutoreleasePool on the StreamLoaderContext callback, because autoreleased items under this method don't seem to get reaped otherwise.

This commit is contained in:
smfr%smfr.org 2005-07-24 23:05:00 +00:00
Родитель 15bd1f3f5d
Коммит fd0b877165
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -35,6 +35,7 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#import "ChimeraUtils.h"
#import "NSString+Utils.h" #import "NSString+Utils.h"
#import "RemoteDataProvider.h" #import "RemoteDataProvider.h"
@ -98,6 +99,8 @@ NS_IMPL_THREADSAFE_ISUPPORTS1(StreamLoaderContext, nsISupports)
void StreamLoaderContext::LoadComplete(nsresult inLoadStatus, const void* inData, unsigned int inDataLength) void StreamLoaderContext::LoadComplete(nsresult inLoadStatus, const void* inData, unsigned int inDataLength)
{ {
StAutoreleasePool pool;
if (mLoadListener) if (mLoadListener)
{ {
NSData* loadData = nil; NSData* loadData = nil;