mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 894925 - Hold a strong ref to the ImageContainer between DispatchImageClientUpdate and UpdateImageClientNow. r=nical
This commit is contained in:
parent
7078dc0031
commit
b70eb2c06d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user