зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
15bd1f3f5d
Коммит
fd0b877165
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче