зеркало из https://github.com/mozilla/pjs.git
b=403481 followup; do the right cleanup in some error conditions; r=stuart
This commit is contained in:
Родитель
77aefc6f02
Коммит
5741f8e9cd
|
@ -108,7 +108,7 @@ already_AddRefed<gfxASurface>
|
|||
gfxPlatformGtk::CreateOffscreenSurface(const gfxIntSize& size,
|
||||
gfxASurface::gfxImageFormat imageFormat)
|
||||
{
|
||||
gfxASurface *newSurface = nsnull;
|
||||
nsRefPtr<gfxASurface> newSurface = nsnull;
|
||||
|
||||
int glitzf;
|
||||
int xrenderFormatID;
|
||||
|
@ -222,8 +222,7 @@ gfxPlatformGtk::CreateOffscreenSurface(const gfxIntSize& size,
|
|||
#endif
|
||||
}
|
||||
|
||||
NS_IF_ADDREF(newSurface);
|
||||
return newSurface;
|
||||
return newSurface.forget();
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче