Bug 894925 - Hold a strong ref to the ImageContainer between DispatchImageClientUpdate and UpdateImageClientNow. r=nical

This commit is contained in:
Markus Stange 2013-07-18 08:33:28 +02:00
Родитель d333d320a7
Коммит d4e021d74c
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -15,6 +15,7 @@
#include "nsXULAppAPI.h"
#include "mozilla/layers/TextureClient.h"
#include "mozilla/layers/ImageClient.h"
#include "ImageContainer.h"
#include "mozilla/layers/LayersTypes.h"
#include "ShadowLayers.h"
@ -316,7 +317,10 @@ void ImageBridgeChild::DispatchImageClientUpdate(ImageClient* aClient,
}
sImageBridgeChildSingleton->GetMessageLoop()->PostTask(
FROM_HERE,
NewRunnableFunction(&UpdateImageClientNow, aClient, aContainer));
NewRunnableFunction<
void (*)(ImageClient*, ImageContainer*),
ImageClient*,
nsRefPtr<ImageContainer> >(&UpdateImageClientNow, aClient, aContainer));
}
void