Skip to content

Commit

Permalink
Fixed embedlite compilation with latest upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Jul 23, 2014
1 parent 26f9ed7 commit 83c781b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions embedding/embedlite/embedthread/EmbedLitePuppetWidget.cpp
Expand Up @@ -516,7 +516,7 @@ void EmbedLitePuppetWidget::CreateCompositor(int aWidth, int aHeight)
{
mCompositorParent = NewCompositorParent(aWidth, aHeight);
MessageChannel* parentChannel = mCompositorParent->GetIPCChannel();
ClientLayerManager* lm = new ClientLayerManager(this);
nsRefPtr<ClientLayerManager> lm = new ClientLayerManager(this);
MessageLoop* childMessageLoop = CompositorParent::CompositorLoop();
mCompositorChild = new CompositorChild(lm);
mCompositorChild->Open(parentChannel, childMessageLoop, ipc::ChildSide);
Expand All @@ -537,7 +537,7 @@ void EmbedLitePuppetWidget::CreateCompositor(int aWidth, int aHeight)
if (success) {
ShadowLayerForwarder* lf = lm->AsShadowForwarder();
if (!lf) {
delete lm;
lm = nullptr;
mCompositorChild = nullptr;
return;
}
Expand All @@ -546,13 +546,13 @@ void EmbedLitePuppetWidget::CreateCompositor(int aWidth, int aHeight)
ImageBridgeChild::IdentifyCompositorTextureHost(textureFactoryIdentifier);
WindowUsesOMTC();

mLayerManager = lm;
mLayerManager = lm.forget();
} else {
// We don't currently want to support not having a LayersChild
if (ViewIsValid()) {
NS_RUNTIMEABORT("failed to construct LayersChild, and View still here");
}
delete lm;
lm = nullptr;
mCompositorChild = nullptr;
}
}
Expand Down

0 comments on commit 83c781b

Please sign in to comment.